/ Vijos /

记录详情

Compile Error

foo.cc:77:11: error: redefinition of 'const int MAXN'
   77 | const int MAXN=10001;
      |           ^~~~
foo.cc:19:11: note: 'const int MAXN' previously defined here
   19 | const int MAXN=10001;
      |           ^~~~
foo.cc:78:5: error: redefinition of 'int n'
   78 | int n;
      |     ^
foo.cc:20:5: note: 'int n' previously declared here
   20 | int n;
      |     ^
foo.cc:79:5: error: redefinition of 'int up [10001]'
   79 | int up[MAXN];
      |     ^~
foo.cc:21:5: note: 'int up [10001]' previously declared here
   21 | int up[MAXN];
      |     ^~
foo.cc:80:5: error: redefinition of 'int down [10001]'
   80 | int down[MAXN];
      |     ^~~~
foo.cc:22:5: note: 'int down [10001]' previously declared here
   22 | int down[MAXN];
      |     ^~~~
foo.cc:81:5: error: redefinition of 'int nums [10001]'
   81 | int nums[MAXN];
      |     ^~~~
foo.cc:23:5: note: 'int nums [10001]' previously declared here
   23 | int nums[MAXN];
      |     ^~~~
foo.cc:83:5: error: redefinition of 'int wiggleMaxLength()'
   83 | int wiggleMaxLength()
      |     ^~~~~~~~~~~~~~~
foo.cc:25:5: note: 'int wiggleMaxLength()' previously defined here
   25 | int wiggleMaxLength()
      |     ^~~~~~~~~~~~~~~
foo.cc:107:5: error: redefinition of 'int main()'
  107 | int main()
      |     ^~~~
foo.cc:49:5: note: 'int main()' previously defined here
   49 | int main()
      |     ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1571 笨笨的导弹攻击
语言
C++
递交时间
2022-08-25 15:59:37
评测时间
2022-08-25 15:59:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes