Problem sumint
User midtthew
Submission Time 2026-07-11 14:38:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp:6:1: error: ‘cin’ does not name a type
6 | cin >> d;
| ^~~
sumint.cpp:7:1: error: expected unqualified-id before ‘for’
7 | for (int d = 1; d<11; d++){
| ^~~
sumint.cpp:7:17: error: ‘d’ does not name a type
7 | for (int d = 1; d<11; d++){
| ^
sumint.cpp:7:23: error: ‘d’ does not name a type
7 | for (int d = 1; d<11; d++){
| ^
sumint.cpp:11:1: error: ‘cout’ does not name a type
11 | cout << sum;
| ^~~~
sumint.cpp:12:1: error: expected unqualified-id before ‘return’
12 | return 0;
| ^~~~~~
sumint.cpp:13:1: error: expected declaration before ‘}’ token
13 | }
| ^