Problem contestcalc
User leafeon
Submission Time 2025-05-26 21:10:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:24:34: error: ‘c’ was not declared in this scope
24 | for (int e = 0; e < cn.size(); c++){
| ^
contestcalc.cpp:26:10: error: ‘ct’ was not declared in this scope; did you mean ‘cp’?
26 | r += ct[e];
| ^~
| cp
contestcalc.cpp:30:11: error: expected ‘;’ before ‘return’
30 | cout << r
| ^
| ;
......
38 | return 0;
| ~~~~~~