Problem sumint
User friendlyfexr
Submission Time 2026-06-14 17:57:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i=0, i<d, i++) {
| ^
sumint.cpp:16:2: error: expected primary-expression before ‘return’
16 | return 0;
| ^~~~~~
sumint.cpp:14:14: error: expected ‘)’ before ‘return’
14 | cout << sum;
| ^
| )
15 |
16 | return 0;
| ~~~~~~
sumint.cpp:8:6: note: to match this ‘(’
8 | for (i=0, i<d, i++) {
| ^