Problem sumint
User Law
Submission Time 2024-06-20 09:51:07
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:6:3: error: expected initializer before ‘for’
6 | for(int i=0; i=n; i++) {
| ^~~
sumint.cpp:6:16: error: ‘i’ was not declared in this scope
6 | for(int i=0; i=n; i++) {
| ^
sumint.cpp:12:13: error: ‘arr’ was not declared in this scope
12 | cin >> x+=arr[i]
| ^~~
sumint.cpp:15:10: error: expected ‘}’ at end of input
15 | return 0;
| ^
sumint.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^