Problem sumint
User audreytan
Submission Time 2026-04-10 17:27:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:2: error: expected ‘,’ or ‘;’ before ‘for’
7 | for (int i =0; i<d; i++){
| ^~~
sumint.cpp:7:17: error: ‘i’ was not declared in this scope
7 | for (int i =0; i<d; i++){
| ^
sumint.cpp:13:10: error: expected ‘;’ before ‘}’ token
13 | return 0
| ^
| ;
14 | }
| ~