Problem sumint
User Jinseo
Submission Time 2023-09-28 11:57:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:9:7: error: ‘i’ was not declared in this scope
9 | for (i = 0; i<n; i++){
| ^
sumint.cpp:16:15: error: expected ‘;’ before ‘}’ token
16 | cout << total
| ^
| ;
17 | }
| ~