| Problem | robots |
|---|---|
| User | StormyGood |
| Submission Time | 2026-01-25 14:48:26 |
| 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:30:13: error: request for member ‘begin’ in ‘toys’, which is of non-class type ‘std::pair<int, int> [T]’
30 | sort(toys.begin(),toys.end(),[](auto a, auto b){
| ^~~~~
robots.cpp:30:26: error: request for member ‘end’ in ‘toys’, which is of non-class type ‘std::pair<int, int> [T]’
30 | sort(toys.begin(),toys.end(),[](auto a, auto b){
| ^~~
robots.cpp: In lambda function:
robots.cpp:54:73: error: expected ‘;’ before ‘}’ token
54 | sort(rem.begin(),rem.end(),[](auto a, auto b){return a.second>b.second});
| ^
| ;