Problem | acorns |
---|---|
User | wrizz69 |
Submission Time | 2024-12-13 20:28:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
acorns.cpp: In member function ‘bool sap::operator<(const sap&) const’:
acorns.cpp:14:20: error: expected primary-expression before ‘.’ token
14 | if(a == sap.a) return b > other.b;
| ^
acorns.cpp:14:35: error: ‘other’ was not declared in this scope
14 | if(a == sap.a) return b > other.b;
| ^~~~~
acorns.cpp:15:20: error: ‘other’ was not declared in this scope
15 | return a < other.a;
| ^~~~~
acorns.cpp: In function ‘long long int solve(long long int, std::vector<sap>&)’:
acorns.cpp:29:34: error: no matching function for call to ‘count(long long int&)’
29 | maxb = count(arr[i].b);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from acorns.cpp:1: