Problem lineup
User lwtzjmnjhljphes
Submission Time 2024-02-27 06:44:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup.cpp: In function ‘int main()’:
lineup.cpp:21:49: error: expression cannot be used as a function
21 | pair<int, int> b=*s.lower_bound({pi[i].second(),-1});
| ^
lineup.cpp:21:54: error: no matching function for call to ‘std::set<std::pair<long long int, long long int> >::lower_bound(<brace-enclosed initializer list>)’
21 | pair<int, int> b=*s.lower_bound({pi[i].second(),-1});
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from lineup.cpp:1:
/usr/include/c++/9/bits/stl_set.h:829:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = std::pair<long long int, long long int>; _Compare = std::less<std::pa