Problem ccs
User gordonlu
Submission Time 2023-11-07 13:21:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:40:66: error: no match for ‘operator<’ (operand types are ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ and ‘long double’)
40 | } else if (max_element(sleepedCats.begin(), sleepedCats.end()) < stold(commandDetails[1]) ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long double
| __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/