记录详情

Compile Error

foo.cc:35:11: error: redefinition of 'const int maxn'
 const int maxn=+5;
           ^~~~
foo.cc:3:11: note: 'const int maxn' previously defined here
 const int maxn=+5;
           ^~~~
foo.cc:36:5: error: redefinition of 'int n'
 int n;
     ^
foo.cc:5:9: note: 'int n' previously declared here
 int i,j,n;
         ^
foo.cc: In function 'int main()':
foo.cc:37:5: error: redefinition of 'int main()'
 int main() {
     ^~~~
foo.cc:21:5: note: 'int main()' previously defined here
 int main() {
     ^~~~
foo.cc: In function 'int main()':
foo.cc:23:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:39:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
偷拍硕哥6
语言
C++
递交时间
2021-10-29 23:40:11
评测时间
2021-10-29 23:40:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes