overtaking.cpp: In function 'void init(int, int, std::vector<long long int>, std::vector<int>, int, int, std::vector<int>)':
overtaking.cpp:26:9: error: reference to 'ranges' is ambiguous
26 | ranges.push_back({});
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp:37:13: error: reference to 'ranges' is ambiguous
37 | ranges.back().push_back({currTime, nxtTime});
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp:39:14: error: reference to 'ranges' is ambiguous
39 | sort(ranges.back().begin(), ranges.back().end());
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp:39:37: error: reference to 'ranges' is ambiguous
39 | sort(ranges.back().begin(), ranges.back().end());
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp:40:17: error: reference to 'ranges' is ambiguous
40 | ll mx = ranges.back()[0].second;
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp:41:29: error: reference to 'ranges' is ambiguous
41 | for (int i = 1; i < ranges.back().size(); i++) {
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp:42:26: error: reference to 'ranges' is ambiguous
42 | mx = max(mx, ranges.back()[i].second);
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp:43:13: error: reference to 'ranges' is ambiguous
43 | ranges.back()[i].second = mx;
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp: In function 'long long int arrival_time(long long int)':
overtaking.cpp:52:19: error: reference to 'ranges' is ambiguous
52 | int len = ranges[i].size();
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp:59:17: error: reference to 'ranges' is ambiguous
59 | if (ranges[i][mid].first < ans) {
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~
overtaking.cpp:69:24: error: reference to 'ranges' is ambiguous
69 | nxt = max(nxt, ranges[i][idx].second);
| ^~~~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1935,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from overtaking.cpp:1:
/usr/include/c++/11/concepts:163:13: note: candidates are: 'namespace std::ranges { }'
163 | namespace ranges
| ^~~~~~
overtaking.cpp:12:30: note: 'std::vector<std::vector<std::pair<long long int, long long int> > > ranges'
12 | vector<vector<pair<ll, ll>>> ranges;
| ^~~~~~