Problem robots
User nguyendinhanh1508
Submission Time 2026-04-22 21:46:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

robots.cpp:6:47: error: redefinition of ‘int* X’
6 | int putaway(int A, int B, int T, int X[], int X[], int W[], int S[]) {
| ~~~~^~~
robots.cpp:6:38: note: ‘int* X’ previously declared here
6 | int putaway(int A, int B, int T, int X[], int X[], int W[], int S[]) {
| ~~~~^~~
robots.cpp: In function ‘int putaway(int, int, int, int*, int*, int*)’:
robots.cpp:12:34: error: ‘Y’ was not declared in this scope
12 | toys.push_back(mp(S[0] < Y[i], S[1] < Y[i]));
| ^