Problem sumint
User itchydeez
Submission Time 2023-11-08 15:30:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:8:7: error: expected ‘;’ before ‘for’
8 | sum=0
| ^
| ;
9 | for (int i = 0; i < d; i += 1){
| ~~~
sumint.cpp:9:18: error: ‘i’ was not declared in this scope
9 | for (int i = 0; i < d; i += 1){
| ^