Problem | sumint |
---|---|
User | CoderBC |
Submission Time | 2025-02-21 15:47:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:7:13: error: invalid types ‘int[int]’ for array subscript
7 | cin >> b[i];
| ^
sumint.cpp:8:11: error: expected initializer before ‘+=’ token
8 | int ans += b[i];
| ^~
sumint.cpp:10:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
10 | cout << ans;
| ^~~
| abs