Problem | sumint |
---|---|
User | Law |
Submission Time | 2024-06-20 09:52:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:6:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int arr[n]
| ^
| yn
sumint.cpp:7:3: error: expected initializer before ‘for’
7 | for(int i=0; i=n; i++) {
| ^~~
sumint.cpp:7:16: error: ‘i’ was not declared in this scope
7 | for(int i=0; i=n; i++) {
| ^
sumint.cpp:13:14: error: ‘arr’ was not declared in this scope
13 | cout << 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() {
| ^