Problem | lineup |
---|---|
User | lwtzjmnjhljphes |
Submission Time | 2024-02-27 06:44:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lineup.cpp: In function ‘int main()’:
lineup.cpp:19:15: error: expected ‘;’ before ‘i’
19 | for (int i=1l i<pi.size(); ++i) {
| ^~
| ;
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: