Problem toxic2
User jiahng
Submission Time 2025-03-23 16:33:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic2.cpp: In function ‘void determine_type(int)’:
toxic2.cpp:140:10: error: ‘N’ was not declared in this scope
140 | FOR(i,0,N-1) if (anss[i] == 2) anss[i] = ans[0];
| ^
toxic2.cpp:17:39: note: in definition of macro ‘FOR’
17 | #define FOR(i,s,e) for(int i=s;i<=int(e);++i)
| ^
toxic2.cpp:140:43: error: ‘ans’ was not declared in this scope; did you mean ‘anss’?
140 | FOR(i,0,N-1) if (anss[i] == 2) anss[i] = ans[0];
| ^~~
| anss