Problem squidzofrenzic
User yuanbin
Submission Time 2026-07-18 10:31:50
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:29:3: error: ‘mid’ was not declared in this scope
29 | mid = (low + high)/2;
| ^~~
squidzofrenzic.cpp:30:25: error: ‘squids’ was not declared in this scope; did yo