| Problem | robots |
|---|---|
| User | StormyGood |
| Submission Time | 2026-01-25 14:44:28 |
| 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:8:2: error: ‘pair’ was not declared in this scope
8 | pair<int,int> toys[T];
| ^~~~
robots.cpp:8:7: error: expected primary-expression before ‘int’
8 | pair<int,int> toys[T];
| ^~~
robots.cpp:9:30: error: ‘toys’ was not declared in this scope
9 | for (int i = 0; i < T; i++) toys[i] = {W[i], S[i]};
| ^~~~
robots.cpp:10:12: error: request for member ‘begin’ in ‘weak’, which is of non-class type ‘int [A]’
10 | sort(weak.begin(),weak.end());
| ^~~~~
robots.cpp:10:25: error: request for member ‘end’ in ‘weak’, which is of non-class type ‘int [A]’
10 | sort(weak.begin(),weak.end());
| ^~~
robots.cpp:10:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
10 | sort(weak.begin(),weak.end());