Problem sumint
User ashlose
Submission Time 2024-04-03 17:15:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:8:29: error: expected primary-expression before ‘}’ token
8 | for (int i = 0; i<d;i++)}
| ^
sumint.cpp: At global scope:
sumint.cpp:9:1: error: expected declaration before ‘}’ token
9 | }
| ^
sumint.cpp:10:2: error: ‘cout’ does not name a type
10 | cout << sum;
| ^~~~
sumint.cpp:11:1: error: expected declaration before ‘}’ token
11 | }
| ^