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)提供评测服务