6 like 1 dislike
1.4k views
Show more...
[Exam] asked in 2017-1 程式設計(一)AD by (18k points)
ID: 36176 - Available when: 2017-12-08 18:30 - Due to: 2017-12-08 21:00
| 1.4k views

6 Answers

0 like 0 dislike
Hidden content!
#include <stdio.h>
int main(void)
{
* * *** *** * *** ***** * A[m][n];
**** ******* * * ** **** *** * * * * ** * ** *
*** ** *** ** ** * * ******* *** * ** ****
* ** ******* * **
** **** ** * ** * *
** * * * * * * ** ***
** * * *** * **
**** ** ** * * * * * ****** * * ***
* ** * * * * ** *
*** ** *** ** * ***** ** * *** * * * * ***
*** ** * ** * ***** ** * **
   
    return 0; * *** * **** ** * * * *** ** *
 }
answered by (144 points)
0 0
prog.c: In function 'main':
prog.c:4:11: error: 'm' undeclared (first use in this function)
     int A[m][n];
           ^
prog.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
prog.c:4:14: error: 'n' undeclared (first use in this function)
     int A[m][n];
              ^
prog.c:11:23: error: expected expression before ')' token
     printf("%d%d%d\n",)
                       ^
0 0
prog.c: In function 'main':
prog.c:4:11: error: 'm' undeclared (first use in this function)
     int A[m][n];
           ^
prog.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
prog.c:4:14: error: 'n' undeclared (first use in this function)
     int A[m][n];
              ^
prog.c:11:23: error: expected expression before ')' token
     printf("%d%d%d\n",)
                       ^
0 like 0 dislike
Hidden content!
#include<stdio.h>

int main(){
    
* * ** ** ** * * * *** * a,b,x,y,i=0;
** * ***** ** * **** ** **** * * %d",&a,&b);
    
** ** * ** ** **** ** ** ** ch[a][b];
    
** * ** ***** * * * * * ***** * ** *
** * *** * * ** * * * * ***** ** * * * * ** *** * *
* *** **** *** ** * * * * ** * ** **** * ** * * * ** **** ** *** * * * * *** * * *
* *** * **** ****** ***** **** *** *** *** ******* ***** ** * ** ********** *
***** *** * * * ** *** * ** * * * ** ***** *** * *
* * ** *** **** * * * * * ** * ** * ** * * *
* ** * ** ** * ** * ****** ** ** * **
**** * *** ** * * * * * * * * * %d %d\n",a,b,i);
** * ** ** ** ********** *** * **
** * * *** * * * * ** **** ** ** ** ***
**** ** * * *** ** * * * *** * ** * * *** * *** ** * *
** * * * * * * ** * ** * ** * *** * * *** * * ** ** * * * %d %d\n",x,y,ch[x][y]);}
* ** * * *** ** ******** *** * * ** * * * ******** ** * *
*** * * * ***** **** ** *** * ** ** *****
* ** * *** * * **** * ** * * * *** system("pause");
}
answered by (192 points)
edited by
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
*** * * * * **
answered by (131 points)
0 0
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
0 like 0 dislike
Hidden content!
** * **** *** *
int main ()
{
*** * **** * * ** ** * M,N;
** ** ***** * * * * ** ****** ******* * *** **
* * * ** * ** * ** **** *** *** %d",M,N);
*** * ** ****
***** *** * * ****** **** 0;
}
answered by (215 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main()
{
    int row,col;
    while(scanf("%d %d",&row,&col)!=EOF)
    {
* * *** * * ****** * * * **** * * ** * * * ** array[row][col];
*** ** * *** ** *** ** ******* * * * * * save[row*col][3];
* *** ** *** ** * * ** ** *** ** * * *** i,j,count=0;
* * **** ** ** **** * * ** ** * ****** * ** * *
        {
* ** ** * *** * ****** * ** **** * * * ** * ** *** * * * *** *******
* ** ** ** * *** ** * * ** * * * * ** * ***** * **** * * ** ** * *** * *** * * * * * * *** ** * ** * * * **
        }
** * * ** ***** * * * * ** ** **** ** * * * * * ** *
        {
* ** *** * ** * * ***** * * ** * ***** ** * * ** ** * **** * ** **
* ** * **** * * * ** * * * *** ***** * ********* * **
** ** ** * * ** * ** * * *** ** * * ** * * * ***** * ** * * ****** ** *** * ** ** * * ****
* ** * * * **** ** ** ** *** ******* * * * * * * * *** *** ***** *** * * * * ** ****
*** *** * * * * * * * ***** * * * * ** * *** ** *** * *** * ** * * ** ** * ** * * * ** * ** ** ****
***** **** * * * ** * * * **** **** *** * * **** * * ** * ****** ****** * * ***** * * * * * * * ** * * * **
*** * ********** * ** ** ** ** ** ** ** * * * ** *** * * * *** * ***** * ** * * ** * ** * * * * * ****** * * * * * *
* ** * * ** *** * ** * ** ** * * ** * * **** * ** * * *** * *** *** * ** ** *** **** **** * * ************
** * * *** ***** ** ** *** * * ** ** ** * * * * *** * ****** * ** ****** * ** *
** * ********* ***** * * * * * ** * * * * * * * * *** *
* ** * * **** ** *** * * * *** * ** ** * **
* * * ** * *** ****** ** ** ** ** ** ** %d %d\n",row,col,count);
* * ** * * * *** ** * ** ** ****** ** * ** * * ** * *** *
        {
* * *** **** ** * ** * ***** * * ** * * ** * * * **** * * ** * * * * * * ** *
**** ** *** * ** * ** * *** * * **** ** * *** * *** * * ** ******** ** * * **** * ** ****** ** *** ** * ** * * * ***** * * * ",save[i][j]);
** *** ** **** *** * *** **** ***** * **** ** * ** *** *** * * **
** * ** ** * ****** *** * * * ** * **

    }

    return 0;
}
answered by (114 points)
edited by
0 0
prog.c:1:1: error: expected identifier or '(' before numeric constant
 0 0 0 0 0 0
 ^
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>
int main()
{
* * * ******** ** **** *** a,b;
*** ** ** **** **** * * * ** %d",&a,&b);
* ** *** ** ** ** * ** arr[a][b];
    int i,j,count=0;
** * ****** * * **** * *** *
    {
******* * * *** * ** * *** * * * * * ** *****
** * * * * ** * * * * ** ** * ** * * *
* * * ** * * ******* ** * ** ** ** * ** ** * * * *** * *** * **** * *** * * ** ****
********* ** **** *** ** ** ** *** ** ** *** ** ***** * ***** * * ** *** * * ** ** **
* *** ** * ** ** ** * * **** **** * ** **
    }

* * ** *** ** ** *** **** ** * *****
    {
** **** * **** * *** * *** ** * * * ** ** ** *** **** *
**** ** ** * * * * *** * ** * **** ** * **
* * * *** * * **** ** * ****** ** ** * ** ** *** * ** * * * * **
* * ***** * * * * ** *** ** *** ***** *** * ** ** ** * **** *** * *** * * * ****
***** * * ** * **** *** ** * ***** * **** * **
    }
* *** * ** * ***** *** *** ** * %d %d\n",a,b,count);
** * * * **** * * * * * ** ***
    {
** *** ** * ** * ** * * *** *** * ** *** ** ****** * ***
* ** * ***** ** ** *** * **** * ** ***
* * ** * * ** * * * ***** * * **** ** * * * * * * ****** * * *** ** **
* * ** ** **** * ** ** **** ** **** * * * * * ** ** * *** * ** * * ** ** * * ****** * * * * ** %d %d\n",i,j,arr[i][j]);
*** * *** *** * * *** ** * * ** * ** *
    }
*** ** * * * * * * * * 0;
}
answered by (100 points)
1 0
Case 0: Correct output
Case 1: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.58.80
©2016-2025

Related questions

3 like 0 dislike
5 answers
[Normal] Coding (C) - asked Dec 20, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
ID: 38153 - Available when: Unlimited - Due to: Unlimited
| 1.3k views
2 like 0 dislike
5 answers
[Exam] asked Dec 23, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
ID: 38942 - Available when: 2017-12-23 09:00 - Due to: 2017-12-23 12:10
| 1.5k views
2 like 0 dislike
18 answers
[Exam] asked Dec 23, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
ID: 38941 - Available when: 2017-12-23 09:00 - Due to: 2017-12-23 12:10
| 3.7k views
12,783 questions
183,442 answers
172,219 comments
4,824 users