Problem | contestcalc |
---|---|
User | leafeon |
Submission Time | 2025-05-26 21:55:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:15:2: error: expected initializer before ‘for’
15 | for (int d = 0; d < a; d++){
| ^~~
contestcalc.cpp:15:18: error: ‘d’ was not declared in this scope
15 | for (int d = 0; d < a; d++){
| ^
contestcalc.cpp:22:8: error: ‘c’ was not declared in this scope
22 | r += c[werks];
| ^
contestcalc.cpp: At global scope:
contestcalc.cpp:25:2: error: ‘cout’ does not name a type
25 | cout << r/b;
| ^~~~
contestcalc.cpp:33:1: error: expected unqualified-id before ‘return’
33 | return 0;
| ^~~~~~
contestcalc.cpp:34:1: error: expected declaration before ‘}’ token
34 | }
| ^