Problem | contestcalc |
---|---|
User | SMJ360 |
Submission Time | 2024-06-19 15:22:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:9:29: error: expected ‘;’ before ‘)’ token
9 | for (int i = 0; i < N, i++) {
| ^
| ;
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:22:28: error: expected ‘;’ before ‘)’ token
22 | for (int k = 0; k < C, k++) {
| ^
| ;
contestcalc.cpp:23:19: error: ‘members’ was not declared in this scope
23 | total += chosen[members[k]];
| ^~~~~~~