Problem sumint
User Tolo925kt
Submission Time 2026-01-15 17:18:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:3: error: expected ‘,’ or ‘;’ before ‘for’
7 | for (int i = 0; i < d; i++){
| ^~~
sumint.cpp:7:19: error: ‘i’ was not declared in this scope
7 | for (int i = 0; i < d; i++){
| ^
sumint.cpp:12:18: error: expected primary-expression before ‘/’ token
12 | cout << total << /n
| ^
sumint.cpp:12:19: error: ‘n’ was not declared in this scope
12 | cout << total << /n
| ^
sumint.cpp:13:10: error: expected ‘}’ at end of input
13 | return 0;
| ^
sumint.cpp:3:13: note: to match this ‘{’
3 | int main () {
| ^