Problem | contestcalc |
---|---|
User | aanyabiswas |
Submission Time | 2024-08-08 10:30:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
contestcalc.cpp:30:26: error: ‘finalscores’ was not declared in this scope
30 | int sum = accumulate(finalscores.begin(), finalscores.end(), 0);
| ^~~~~~~~~~~
contestcalc.cpp:30:47: error: ‘finalscores’ was not declared in this scope
30 | int sum = accumulate(finalscores.begin(), finalscores.end(), 0);
| ^~~~~~~~~~~
contestcalc.cpp:31:25: error: ‘C’ was not declared in this scope
31 | int average = sum / C;
| ^
contestcalc.cpp:33:5: error: ‘cout’ does not name a type
33 | cout << average << endl;
| ^~~~
contestcalc.cpp:35:5: error: expected unqualified-id before ‘return’
35 | return 0;
| ^~~~~~
contestcalc.cpp:36:1: error: expected declaration before ‘}’ token
36 | }
| ^