Problem | fractions |
---|---|
User | BoneMeBurner |
Submission Time | 2024-07-26 17:40:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fractions.cpp:8:16: error: declaration of ‘operator<’ as non-function
8 | bool operator<(f1, f2) {
| ^~
fractions.cpp:8:16: error: ‘f1’ was not declared in this scope; did you mean ‘y1’?
8 | bool operator<(f1, f2) {
| ^~
| y1
fractions.cpp:8:20: error: ‘f2’ was not declared in this scope
8 | bool operator<(f1, f2) {
| ^~
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from fractions.cpp:1:
/usr/include/c++/9/bits/stl_pair.h: In instantiation of ‘constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) [with _T1 = Fraction; _T2 = int]’:
/usr/include/c++/9/bits/predefi