Problem sumint
User chickengoat
Submission Time 2025-01-18 21:11:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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