Problem | fractions |
---|---|
User | Yuzzll |
Submission Time | 2023-04-25 16:45:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fractions.cpp: In lambda function:
fractions.cpp:18:72: error: no match for ‘operator<’ (operand types are ‘const std::pair<long long int, long long int>’ and ‘const std::pair<int, int>’)
18 | return a.second < b.second || (a.second == b.second && a.first < b.first);
| ~~~~~~~ ^ ~~~~~~~
| | |
| | pair<int,int>
| pair<long long int,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/include/c++/9/iostr