Problem sumint
User SMILE
Submission Time 2024-04-13 11:23:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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