Problem squidzofrenzic
User yuanbin
Submission Time 2026-07-18 10:32:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squidzofrenzic.cpp: In function ‘int main()’:
squidzofrenzic.cpp:27:17: error: cannot convert ‘const __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ to ‘long long int’ in initialization
27 | llong low = max(boxes.begin(), boxes.end()), high = accumulate(boxes.begin, boxes.end, 0);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >
squidzofrenzic.cpp:27:54: error: ‘accumulate’ was not declared in this scope
27 | llong low = max(boxes.begin(), boxes.end()), high = accumulate(boxes.begin, boxes.end, 0);
| ^~~~~~~~~~
squidzofrenzic.cpp:30:25: error: ‘squids’ was not declared in this scope; did you mean ‘squid’?
30 | if (check(boxes, mid, squids)){
| ^~~~~~
|