Problem sumint
User Reality1001
Submission Time 2024-02-16 13:08:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:8:9: error: expected primary-expression before ‘int’
8 | cin >> int arr[d];
| ^~~
sumint.cpp:9:5: error: expected ‘(’ before ‘{’ token
9 | for{
| ^
| (
sumint.cpp:9:5: error: expected primary-expression before ‘{’ token
sumint.cpp:17:1: error: expected primary-expression at end of input
17 | }
| ^
sumint.cpp:17:2: error: expected ‘;’ at end of input
17 | }
| ~^
| ;
sumint.cpp:17:1: error: expected primary-expression at end of input
17 | }
| ^
sumint.cpp:17:2: error: expected ‘)’ at end of input
17 | }
| ~^
| )
sumint.cpp:9:5: note: to match this ‘(’
9 | for{
| ^
sumint.cpp:17:1: error: expected statement at end of input
17 | }
| ^
sumint.cpp:17:1: error: expected ‘}’ at end of input
sumint.cpp:6:11: note: to match this ‘{’