/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:7: error: conflicting declaration 'int a'
   14 |   int a;
      |       ^
/in/foo.cc:8:7: note: previous declaration as 'int a [100][100]'
    8 |   int a[100][100];
      |       ^
/in/foo.cc:18:8: error: incompatible types in assignment of 'int' to 'int [100][100]'
   18 |      a=1;
      |        ^
/in/foo.cc:25:8: error: incompatible types in assignment of 'int' to 'int [100][100]'
   25 |      a=2;
      |        ^
/in/foo.cc:29:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   29 |   if(a==2){
      |         ^

信息

递交者
类型
递交
题目
P1016 折纸游戏
语言
C++
递交时间
2025-03-28 21:31:16
评测时间
2025-03-28 21:31:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes