Problem | sumint |
---|---|
User | Sia |
Submission Time | 2023-11-08 18:18:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:6:2: error: expected initializer before ‘int’
6 | int d,arr[10005];
| ^~~
sumint.cpp:7:9: error: ‘d’ was not declared in this scope
7 | cin >> d;
| ^
sumint.cpp:9:13: error: ‘arr’ was not declared in this scope
9 | cin >> arr[i];
| ^~~
sumint.cpp:10:6: error: ‘s’ was not declared in this scope
10 | s = s + arr[i];
| ^
sumint.cpp:12:10: error: ‘s’ was not declared in this scope
12 | cout << s;
| ^