Submission #00744
ソースコード
ステータス
コンパイルメッセージ
./Main.c:8:11: error: expected declaration specifiers or ‘...’ before string constant
scanf("%d" , &m);
^~~~
./Main.c:8:18: error: expected declaration specifiers or ‘...’ before ‘&’ token
scanf("%d" , &m);
^
./Main.c:9:14: error: ‘m’ undeclared here (not in a function)
int data[m][2];
^
./Main.c:10:5: error: expected identifier or ‘(’ before ‘for’
for(int i = 0;i < m;i ++){
^~~
./Main.c:10:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
for(int i = 0;i < m;i ++){
^
./Main.c:10:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token
for(int i = 0;i < m;i ++){
^~
./Main.c:14:11: error: expected declaration specifiers or ‘...’ before string constant
scanf("%d" , &q);
^~~~
./Main.c:14:18: error: expected declaration specifiers or ‘...’ before ‘&’ token
scanf("%d" , &q);
^
./Main.c:15:11: error: ‘q’ undeclared here (not in a function)
int p[q];
^
./Main.c:16:5: error: expected identifier or ‘(’ before ‘for’
for(int i = 0;i < q;i ++){
^~~
./Main.c:16:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
for(int i = 0;i < q;i ++){
^
./Main.c:16:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token
for(int i = 0;i < q;i ++){
^~
./Main.c:20:5: error: expected identifier or ‘(’ before ‘for’
for(int i = 0;i < q;i ++){
^~~
./Main.c:20:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
for(int i = 0;i < q;i ++){
^
./Main.c:20:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token
for(int i = 0;i < q;i ++){
^~
./Main.c:31:5: error: expected identifier or ‘(’ before ‘return’
return(0);
^~~~~~
./Main.c:32:1: error: expected identifier or ‘(’ before ‘}’ token
}
^
セット
テストケース