Problem | sumint |
---|---|
User | AliLam |
Submission Time | 2025-06-18 16:40:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:11:8: error: expected primary-expression before ‘int’
11 | for ((int i=0;i<A; i++) {
| ^~~
sumint.cpp:11:8: error: expected ‘)’ before ‘int’
11 | for ((int i=0;i<A; i++) {
| ~^~~
| )
sumint.cpp:11:16: error: ‘i’ was not declared in this scope
11 | for ((int i=0;i<A; i++) {
| ^
sumint.cpp:13:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
13 | ans += B;
| ^~~
| abs
sumint.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
sumint.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^