Problem | lightningrod |
---|---|
User | yc |
Submission Time | 2025-06-01 06:27:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘bool hi(std::pair<int, int>, std::pair<int, int>)’:
lightningrod.cpp:7:17: error: expression cannot be used as a function
7 | return a.second()>b.second();
| ^
lightningrod.cpp:7:28: error: expression cannot be used as a function
7 | return a.second()>b.second();
| ^
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:14:10: error: no match for ‘operator+’ (operand types are ‘std::deque<std::pair<int, int> >’ and ‘int’)
14 | sort(n,n+N,hi);
| ~^~
| | |
| | int
| std::deque<std::pair<int, int> >
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
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/std