Problem deda
User Henries
Submission Time 2024-11-14 00:38:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deda.cpp: In function ‘void bsearch(long long int, long long int)’:
deda.cpp:9:15: error: reference to ‘left’ is ambiguous
9 | auto it = left.lower_bound({b, -1}); // Find first child with ID >= b
| ^~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from deda.cpp:1:
/usr/include/c++/9/bits/ios_base.h:1011:3: note: candidates are: ‘std::ios_base& std::left(std::ios_base&)’
1011 | left(ios_base& __base)
| ^~~~
deda.cpp:5:33: note: ‘std::set<std::pair<long long int, long long int> > left’
5 | set<pair<long long, long long>> left; // (child_id, stops)