Problem contestcalc
User YongXin
Submission Time 2023-06-01 21:10:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i=0; i<n; ++i) {
| ^
contestcalc.cpp:14:5: error: expected ‘;’ before ‘for’
14 | r=0
| ^
| ;
15 | for (i=0; i<c; ++i) {
| ~~~
contestcalc.cpp:15:12: error: ‘i’ was not declared in this scope
15 | for (i=0; i<c; ++i) {
| ^