Problem | leftright |
---|---|
User | CKCodeBreaker55 |
Submission Time | 2024-12-11 16:31:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
leftright.cpp: In function ‘int main()’:
leftright.cpp:7:15: error: expected initializer before ‘index’
7 | int Q, a, bn index;
| ^~~~~
leftright.cpp:16:11: error: ‘b’ was not declared in this scope
16 | cin >> b;
| ^
leftright.cpp:23:30: error: overloaded function with no contextual type information
23 | index = (v.size() - 1) / 2;
| ^
leftright.cpp:27:28: error: overloaded function with no contextual type information
27 | index = v.size() / 2 - 1;
| ^
leftright.cpp:29:22: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<=’
29 | for (int x = 0; x <= index; x++)
| ~~^~~~~~~~