| Problem | robots |
|---|---|
| User | StormyGood |
| Submission Time | 2026-01-25 14:47:17 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
robots.cpp: In function ‘int putaway(int, int, int, int*, int*, int*, int*)’:
robots.cpp:25:2: error: ‘pair’ was not declared in this scope
25 | pair<int,int> toys[T];
| ^~~~
robots.cpp:25:7: error: expected primary-expression before ‘int’
25 | pair<int,int> toys[T];
| ^~~
robots.cpp:26:30: error: ‘toys’ was not declared in this scope
26 | for (int i = 0; i < T; i++) toys[i] = {W[i], S[i]};
| ^~~~
robots.cpp:27:12: error: request for member ‘begin’ in ‘weak’, which is of non-class type ‘int [A]’
27 | sort(weak.begin(),weak.end());
| ^~~~~
robots.cpp:27:25: error: request for member ‘end’ in ‘weak’, which is of non-class type ‘int [A]’
27 | sort(weak.begin(),weak.end());
| ^~~
robots.cpp:27:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
27 | sort(weak.begin(),weak.end());