Problem sumint
User Reality1001
Submission Time 2024-02-16 12:44:25
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:14:1: error: expected primary-expression at end of input
14 | }
| ^
sumint.cpp:14:2: error: expected ‘;’ at end of input
14 | }
| ~^
| ;
sumint.cpp:14:1: error: expected primary-expression at end of input
14 | }
| ^
sumint.cpp:14:2: error: expected ‘)’ at end of input
14 | }
| ~^
| )
sumint.cpp:9:6: note: to match this ‘(’
9 | for {
| ^
sumint.cpp:14:1: error: expected statement at end of input
14 | }
| ^
sumint.cpp:14:1: error: expected ‘}’ at end of input
sumint.cpp:6:11: note: to match this ‘{’
6 | int main(){
| ^