/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:10: error: ISO C++ forbids declaration of 'voidmain' with no type [-fpermissive]
 voidmain()
          ^
/in/foo.cc: In function 'int voidmain()':
/in/foo.cc:4:5: error: 'intm' was not declared in this scope
     intm,n,i,j,b,p,bound;
     ^~~~
/in/foo.cc:4:10: error: 'n' was not declared in this scope
     intm,n,i,j,b,p,bound;
          ^
/in/foo.cc:4:12: error: 'i' was not declared in this scope
     intm,n,i,j,b,p,bound;
            ^
/in/foo.cc:4:14: error: 'j' was not declared in this scope
     intm,n,i,j,b,p,bound;
              ^
/in/foo.cc:4:16: error: 'b' was not declared in this scope
     intm,n,i,j,b,p,bound;
                ^
/in/foo.cc:4:18: error: 'p' was not declared in this scope
     intm,n,i,j,b,p,bound;
                  ^
/in/foo.cc:4:20: error: 'bound' was not declared in this scope
     intm,n,i,j,b,p,bound;
                    ^~~~~
/in/foo.cc:5:5: error: 'intgr' was not declared in this scope
     intgr[14];
     ^~~~~
/in/foo.cc:9:23: error: 'm' was not declared in this scope
     scanf("%d,%d",&n,&m);
                       ^
/in/foo.cc:15:15: error: 'exit' was not declared in this scope
         exit(0);
               ^
/in/foo.cc:27:9: error: 'gr' was not declared in this scope
         gr[i]=p;
         ^~
/in/foo.cc:32:21: error: 'gr' was not declared in this scope
         printf("%d",gr[i]);
                     ^~
/in/foo.cc:35:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1516 N连环
语言
C++
递交时间
2021-12-23 20:53:58
评测时间
2021-12-23 20:53:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes