robots.cpp:9:22: error: stray '`' in program
9 | sort ( Y, Y + B);`
| ^
robots.cpp: In function 'int putaway(int, int, int, int*, int*, int*, int*)':
robots.cpp:13:10: error: 'i' was not declared in this scope
13 | for (i = 0; i < T; i ++) {
| ^
robots.cpp:14:23: error: request for member 'back' in 'X', which is of non-class type 'int*'
14 | if ( W[i] > X.back()) only_B.push_back(S[i]);
| ^~~~
robots.cpp:15:23: error: request for member 'back' in 'Y', which is of non-class type 'int*'
15 | if ( S[i] > Y.back()) only_A.push_back(W[i]);
| ^~~~
robots.cpp:16:23: error: request for member 'back' in 'X', which is of non-class type 'int*'
16 | if ( W[i] > X.back() && S[i] > Y.back()) return -1;
| ^~~~
robots.cpp:16:42: error: request for member 'back' in 'Y', which is of non-class type 'int*'
16 | if ( W[i] > X.back() && S[i] > Y.back()) return -1;
| ^~~~
robots.cpp:17:23: error: request for member 'back' in 'X', which is of non-class type 'int*'
17 | if( W[i] <= X.back() && S[i] <= Y.back()) {
| ^~~~
robots.cpp:17:43: error: request for member 'back' in 'Y', which is of non-class type 'int*'
17 | if( W[i] <= X.back() && S[i] <= Y.back()) {
| ^~~~
robots.cpp:22:5: error: 'lo' was not declared in this scope; did you mean 'log'?
22 | lo = 0;
| ^~
| log
robots.cpp:23:5: error: 'hi' was not declared in this scope
23 | hi = 1e9;
| ^~
robots.cpp:26:9: error: 'mid' was not declared in this scope
26 | mid = (lo + hi)/2;
| ^~~
robots.cpp:27:9: error: 'r' was not declared in this scope
27 | r = 0;
| ^
robots.cpp:28:14: error: 'i' was not declared in this scope
28 | for (i = 0; i < X.size(); i ++) {
| ^
robots.cpp:28:27: error: request for member 'size' in 'X', which is of non-class type 'int*'
28 | for (i = 0; i < X.size(); i ++) {
| ^~~~
robots.cpp:29:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
29 | cnt = mid;
| ^~~
| int
robots.cpp:40:14: error: 'i' was not declared in this scope
40 | for (i = 0; i < Y.size(); i ++) {
| ^
robots.cpp:40:27: error: request for member 'size' in 'Y', which is of non-class type 'int*'
40 | for (i = 0; i < Y.size(); i ++) {
| ^~~~
robots.cpp:41:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
41 | cnt = mid;
| ^~~
| int