Problem robots
User shenshiqi
Submission Time 2026-10-22 20:20:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

robots.cpp: In function ‘int putaway(int, int, int, int*, int*, int*, int*)’:
robots.cpp:78:17: error: ‘LLONG_MAX’ was not declared in this scope
78 | else wkAns = {LLONG_MAX, -67};
| ^~~~~~~~~
robots.cpp:6:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
5 | #include <iostream>
+++ |+#include <climits>
6 | using namespace std;
robots.cpp:78:31: error: no match for ‘operator=’ (operand types are ‘std::pair<long long int, long long int>’ and ‘<brace-enclosed initializer list>’)
78 | else wkAns = {LLONG_MAX, -67};
| ^
In file included from /usr/include/c++/9/utility:70,
from robots.cpp:2:
/usr/include/c++/9/bits/stl_pair.h:378:7: note: candidate: ‘std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(typename std::conditional<std::__and_<std::is_copy_assignabl