Problem ballot
User louisleehi
Submission Time 2022-12-23 11:07:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballot.cpp:18:7: error: ‘MAXN’ was not declared in this scope
18 | int M[MAXN];
| ^~~~
ballot.cpp:6:20: error: expected unqualified-id before ‘for’
6 | #define FOR(i,a,b) for(int i=(a);i<=(b);i++)
| ^~~
ballot.cpp:19:1: note: in expansion of macro ‘FOR’
19 | FOR(i,1,N)M[A[i]]=i;
| ^~~
ballot.cpp:19:5: error: ‘i’ does not name a type
19 | FOR(i,1,N)M[A[i]]=i;
| ^
ballot.cpp:6:34: note: in definition of macro ‘FOR’
6 | #define FOR(i,a,b) for(int i=(a);i<=(b);i++)
| ^
ballot.cpp:19:5: error: ‘i’ does not name a type
19 | FOR(i,1,N)M[A[i]]=i;
| ^
ballot.cpp:6:41: note: in definition of macro ‘FOR’
6 | #define FOR(i,a,b) for(int i=(a);i<=(b);i++)
| ^
ballot.cpp:20:1: error: ‘M’ does not name a type
20 | M[-1e9-1]=-1;
| ^
ballot.cpp:2