Problem sumint
User j48495734
Submission Time 2026-03-29 01:09:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int32_t main()’:
sumint.cpp:11:2: error: ‘cint’ was not declared in this scope; did you mean ‘uint’?
11 | cint >> a;
| ^~~~
| uint
sumint.cpp:12:7: error: ‘i’ was not declared in this scope
12 | for (i=0,i<n,i++) {
| ^
sumint.cpp:12:13: error: ‘n’ was not declared in this scope
12 | for (i=0,i<n,i++) {
| ^
sumint.cpp:19:1: error: expected primary-expression before ‘}’ token
19 | }
| ^
sumint.cpp:17:14: error: expected ‘)’ before ‘}’ token
17 | cout << sum;
| ^
| )
18 |
19 | }
| ~
sumint.cpp:12:6: note: to match this ‘(’
12 | for (i=0,i<n,i++) {
| ^
sumint.cpp:19:1: error: expected primary-expression before ‘}’ token
19 | }
| ^