Problem sumint
User Law
Submission Time 2024-06-20 09:39:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:5:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int arr[n];
| ^
| yn
sumint.cpp:7:5: error: expected ‘,’ before ‘>>’ token
7 | cin >> arr[i];
| ^~~
| ,
sumint.cpp:7:6: error: expected identifier before ‘>>’ token
7 | cin >> arr[i];
| ^~
sumint.cpp:7:15: error: expected ‘]’ before ‘;’ token
7 | cin >> arr[i];
| ^
| ]
sumint.cpp: In lambda function:
sumint.cpp:7:15: error: expected ‘{’ before ‘;’ token