Problem sumint
User Isaiah
Submission Time 2023-05-12 19:21:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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