/ Vijos /

记录详情

Compile Error

foo.cc:41:5: error: redefinition of 'int main()'
   41 | int main()
      |     ^~~~
foo.cc:28:5: note: 'int main()' previously defined here
   28 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:43:8: warning: unused variable 'cnt' [-Wunused-variable]
   43 |  int n,cnt=0;
      |        ^~~
foo.cc: At global scope:
foo.cc:63:5: error: conflicting declaration 'int a [10005]'
   63 | int a[10005];
      |     ^
foo.cc:40:5: note: previous declaration as 'int a [105]'
   40 | int a[105];
      |     ^
foo.cc:73:5: error: redefinition of 'int main()'
   73 | int main()
      |     ^~~~
foo.cc:28:5: note: 'int main()' previously defined here
   28 | int main()
      |     ^~~~
foo.cc:96:5: error: redefinition of 'int main()'
   96 | int main()
      |     ^~~~
foo.cc:28:5: note: 'int main()' previously defined here
   28 | int main()
      |     ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2022-07-18 11:01:51
评测时间
2022-07-18 11:01:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes