Problem sumint
User jaydenlol
Submission Time 2026-06-22 16:11:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:10:20: error: expected ‘;’ before ‘<’ token
10 | for (int i = 0, i<d, i++)
| ^
| ;
sumint.cpp:10:20: error: expected primary-expression before ‘<’ token
sumint.cpp:10:27: error: expected ‘;’ before ‘)’ token
10 | for (int i = 0, i<d, i++)
| ^
| ;
sumint.cpp:12:10: error: ‘x’ was not declared in this scope
12 | cin >> x;
| ^
sumint.cpp: At global scope:
sumint.cpp:15:2: error: ‘cout’ does not name a type
15 | cout << total;
| ^~~~
sumint.cpp:16:5: error: expected unqualified-id before ‘return’
16 | return 0;
| ^~~~~~
sumint.cpp:17:1: error: expected declaration before ‘}’ token
17 | }
| ^