Problem sumint
User Reality1001
Submission Time 2024-02-16 12:46:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:9:6: error: expected ‘(’ before ‘{’ token
9 | for {
| ^
| (
sumint.cpp:9:6: error: expected primary-expression before ‘{’ token
sumint.cpp:16:2: error: expected primary-expression before ‘}’ token
16 | }
| ^
sumint.cpp:15:3: error: expected ‘;’ before ‘}’ token
15 | }
| ^
| ;
16 | }
| ~
sumint.cpp:16:2: error: expected primary-expression before ‘}’ token
16 | }
| ^
sumint.cpp:15:3: error: expected ‘)’ before ‘}’ token
15 | }
| ^
| )
16 | }
| ~
sumint.cpp:9:6: note: to match this ‘(’
9 | for {
| ^
sumint.cpp:16:2: error: expected primary-expression before ‘}’ token
16 | }
| ^
sumint.cpp: At global scope:
sumint.cpp:17:1: error: expected declaration before ‘}’ token
17 | }
| ^