Compile Error

/in/foo.cc:35:2: error: stray '#' in program
   35 | }#include<bits/stdc++.h>
      |  ^
/in/foo.cc:35:3: error: 'include' does not name a type
   35 | }#include<bits/stdc++.h>
      |   ^~~~~~~
/in/foo.cc:37:5: error: redefinition of 'int n'
   37 | int n,m,a,b,cnt;
      |     ^
/in/foo.cc:3:5: note: 'int n' previously declared here
    3 | int n,m,a,b,cnt;
      |     ^
/in/foo.cc:37:7: error: redefinition of 'int m'
   37 | int n,m,a,b,cnt;
      |       ^
/in/foo.cc:3:7: note: 'int m' previously declared here
    3 | int n,m,a,b,cnt;
      |       ^
/in/foo.cc:37:9: error: redefinition of 'int a'
   37 | int n,m,a,b,cnt;
      |         ^
/in/foo.cc:3:9: note: 'int a' previously declared here
    3 | int n,m,a,b,cnt;
      |         ^
/in/foo.cc:37:11: error: redefinition of 'int b'
   37 | int n,m,a,b,cnt;
      |           ^
/in/foo.cc:3:11: note: 'int b' previously declared here
    3 | int n,m,a,b,cnt;
      |           ^
/in/foo.cc:37:13: error: redefinition of 'int cnt'
   37 | int n,m,a,b,cnt;
      |             ^~~
/in/foo.cc:3:13: note: 'int cnt' previously declared here
    3 | int n,m,a,b,cnt;
      |             ^~~
/in/foo.cc:38:5: error: redefinition of 'int main()'
   38 | int main()
      |     ^~~~
/in/foo.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~

信息

递交者
类型
递交
题目
P2953 奖品兑换
语言
C++
递交时间
2025-07-15 10:23:58
评测时间
2025-07-15 10:23:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes