Problem sumint
User Josh12345678
Submission Time 2023-09-09 10:51:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:13:7: error: ‘i’ was not declared in this scope
13 | for( i=1, i<=days, i++){
| ^
sumint.cpp:18:1: error: expected primary-expression before ‘}’ token
18 | }
| ^
sumint.cpp:17:16: error: expected ‘)’ before ‘}’ token
17 | cout << total;
| ^
| )
18 | }
| ~
sumint.cpp:13:5: note: to match this ‘(’
13 | for( i=1, i<=days, i++){
| ^
sumint.cpp:18:1: error: expected primary-expression before ‘}’ token
18 | }
| ^