Problem | departure |
---|---|
User | ryangohca |
Submission Time | 2024-02-14 11:23:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
departure.cpp: In lambda function:
departure.cpp:116:92: error: no match for ‘operator<’ (operand types are ‘frac’ and ‘frac’)
116 | if (a.second - a.first == b.second - b.first) return frac(-a.first, a.second - a.first) < frac(-b.first, b.second - b.first);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| frac frac
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from departure.cpp:1:
/usr/include/c++/9/bits/regex.h:1048:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator<(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_