Problem magiccarps
User SMJ360
Submission Time 2024-06-20 09:19:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

magiccarps.cpp: In function ‘int main()’:
magiccarps.cpp:21:23: error: redeclaration of ‘int E_track’
21 | int score = J_track, E_track = 0, int totalE = 0;
| ^~~~~~~
magiccarps.cpp:14:19: note: ‘int E_track’ previously declared here
14 | int J_track = 0, E_track = 0, idx = 0;
| ^~~~~~~
magiccarps.cpp:21:36: error: expected unqualified-id before ‘int’
21 | int score = J_track, E_track = 0, int totalE = 0;
| ^~~
magiccarps.cpp:23:29: error: expected ‘;’ before ‘)’ token
23 | for (int l = 0; l < N, l++) {
| ^
| ;
magiccarps.cpp:27:4: error: ‘total_E’ was not declared in this scope
27 | total_E += E_track;
| ^~~~~~~