Problem | pairsums |
---|---|
User | blob |
Submission Time | 2023-11-15 13:41:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pairsums.cpp: In function ‘int main()’:
pairsums.cpp:11:3: error: expected initializer before ‘if’
11 | if (numbers[A]%2 == 1){
| ^~
pairsums.cpp:14:3: error: ‘else’ without a previous ‘if’
14 | else if (numbers[A]%2 == 0){
| ^~~~
pairsums.cpp:14:20: error: ‘A’ was not declared in this scope
14 | else if (numbers[A]%2 == 0){
| ^
pairsums.cpp:15:7: error: ‘even’ was not declared in this scope
15 | ++ even;
| ^~~~
pairsums.cpp:17:14: error: ‘even’ was not declared in this scope
17 | cout << odd*even << endl;
| ^~~~
pairsums.cpp:18:10: error: expected ‘;’ before ‘}’ token
18 | return 0
| ^
| ;
19 | }
| ~