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

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:9:18: error: expected ‘;’ before ‘for’
9 | 1 <= d <= 100000
| ^
| ;
10 | for (i=0; i<d; i++)
| ~~~
sumint.cpp:10:12: error: ‘i’ was not declared in this scope
10 | for (i=0; i<d; i++)
| ^
sumint.cpp:12:9: error: ‘a’ was not declared in this scope
12 | cin <<a;
| ^