Problem taxcollection
User thatlycheeoolongdrink
Submission Time 2024-03-06 15:41:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

taxcollection.cpp:31:11: error: redefinition of ‘const int N’
31 | const int N = 1e5 + 5;
| ^
taxcollection.cpp:4:11: note: ‘const int N’ previously defined here
4 | const int N = 1e5 + 5;
| ^
taxcollection.cpp:32:5: error: redefinition of ‘int n’
32 | int n, a[N], mod[N], dp[N][2], ans;
| ^
taxcollection.cpp:5:5: note: ‘int n’ previously declared here
5 | int n, a[N], mod[N], dp[N][2], ans;
| ^
taxcollection.cpp:32:8: error: redefinition of ‘int a [100005]’
32 | int n, a[N], mod[N], dp[N][2], ans;
| ^
taxcollection.cpp:5:8: note: ‘int a [100005]’ previously declared here
5 | int n, a[N], mod[N], dp[N][2], ans;
| ^
taxcollection.cpp:32:14: error: redefinition of ‘int mod [100005]’
32 | int n, a[N], mod[N], dp[N][2], ans;
| ^~~
taxcollection.cpp:5:14: note: ‘int mod [100005]’ previously declared here