Problem contestcalc
User SMJ360
Submission Time 2024-06-19 15:22:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:16:2: error: expected initializer before ‘for’
16 | for (int j = 0; j < C; j++) {
| ^~~
contestcalc.cpp:16:18: error: ‘j’ was not declared in this scope
16 | for (int j = 0; j < C; j++) {
| ^
contestcalc.cpp:23:19: error: ‘members’ was not declared in this scope
23 | total += chosen[members[k]];
| ^~~~~~~