Problem sumint
User piecat
Submission Time 2026-11-18 20:25:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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