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