Problem sumint
User BlueSpace
Submission Time 2024-04-20 09:27:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:8:8: error: expected ‘;’ before ‘for’
8 | cin>>d
| ^
| ;
9 | for(int i = 0; i <= d; i++){
| ~~~
sumint.cpp:9:17: error: ‘i’ was not declared in this scope
9 | for(int i = 0; i <= d; i++){
| ^
sumint.cpp:13:2: error: expected ‘}’ at end of input
13 | }
| ^
sumint.cpp:6:11: note: to match this ‘{’
6 | int main(){
| ^