Submission #00742
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp:12:10: error: expected constructor, destructor, or type conversion before ‘(’ token
scanf("%d" , &m);
^
./Main.cpp:13:14: error: ‘m’ was not declared in this scope
int data[m][2];
^
./Main.cpp:13:14: note: suggested alternative: ‘tm’
int data[m][2];
^
tm
./Main.cpp:14:5: error: expected unqualified-id before ‘for’
for(int i = 0;i < m;i ++){
^~~
./Main.cpp:14:19: error: ‘i’ does not name a type
for(int i = 0;i < m;i ++){
^
./Main.cpp:14:25: error: ‘i’ does not name a type
for(int i = 0;i < m;i ++){
^
./Main.cpp:18:10: error: expected constructor, destructor, or type conversion before ‘(’ token
scanf("%d" , &q);
^
./Main.cpp:19:11: error: ‘q’ was not declared in this scope
int p[q];
^
./Main.cpp:20:5: error: expected unqualified-id before ‘for’
for(int i = 0;i < q;i ++){
^~~
./Main.cpp:20:19: error: ‘i’ does not name a type
for(int i = 0;i < q;i ++){
^
./Main.cpp:20:25: error: ‘i’ does not name a type
for(int i = 0;i < q;i ++){
^
./Main.cpp:24:5: error: expected unqualified-id before ‘for’
for(int i = 0;i < q;i ++){
^~~
./Main.cpp:24:19: error: ‘i’ does not name a type
for(int i = 0;i < q;i ++){
^
./Main.cpp:24:25: error: ‘i’ does not name a type
for(int i = 0;i < q;i ++){
^
./Main.cpp:35:5: error: expected unqualified-id before ‘return’
return(0);
^~~~~~
./Main.cpp:36:1: error: expected declaration before ‘}’ token
}
^
セット
テストケース