Problem sumint
User elsatanyixin
Submission Time 2026-02-14 11:02:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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