Problem sumint
User kingjames34
Submission Time 2025-10-13 16:43:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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