overtaking.cpp:8:34: error: 'std::vector<std::vector<std::pair<long long int, long long int> > > time' redeclared as different kind of entity
8 | vector<vector<pair<ll, ll>>> time(1009);
| ^
In file included from /usr/include/c++/10/ctime:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:49,
from overtaking.cpp:1:
/usr/include/time.h:75:15: note: previous declaration 'time_t time(time_t*)'
75 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
overtaking.cpp: In function 'void init(int, int, std::vector<long long int>, std::vector<int>, int, int, std::vector<int>)':
overtaking.cpp:19:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
19 | time[i].clear();
| ^
overtaking.cpp:19:11: error: request for member 'clear' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
19 | time[i].clear();
| ^~~~~
overtaking.cpp:39:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
39 | time[j].push_back(make_pair(-1, 0));
| ^
overtaking.cpp:39:17: error: request for member 'push_back' in '*(time + ((sizetype)j))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
39 | time[j].push_back(make_pair(-1, 0));
| ^~~~~~~~~
overtaking.cpp:45:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
45 | time[j].push_back(make_pair(x[i].first, max(mx, mx2)));
| ^
overtaking.cpp:45:21: error: request for member 'push_back' in '*(time + ((sizetype)j))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
45 | time[j].push_back(make_pair(x[i].first, max(mx, mx2)));
| ^~~~~~~~~
overtaking.cpp: In function 'll arrival_time(ll)':
overtaking.cpp:52:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
52 | int idx = lower_bound(time[i].begin(), time[i].end(), make_pair(cur, -1LL)) - time[i].begin() - 1;
| ^
overtaking.cpp:52:39: error: request for member 'begin' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
52 | int idx = lower_bound(time[i].begin(), time[i].end(), make_pair(cur, -1LL)) - time[i].begin() - 1;
| ^~~~~
overtaking.cpp:52:54: warning: pointer to a function used in arithmetic [-Wpointer-arith]
52 | int idx = lower_bound(time[i].begin(), time[i].end(), make_pair(cur, -1LL)) - time[i].begin() - 1;
| ^
overtaking.cpp:52:56: error: request for member 'end' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
52 | int idx = lower_bound(time[i].begin(), time[i].end(), make_pair(cur, -1LL)) - time[i].begin() - 1;
| ^~~
overtaking.cpp:52:93: warning: pointer to a function used in arithmetic [-Wpointer-arith]
52 | int idx = lower_bound(time[i].begin(), time[i].end(), make_pair(cur, -1LL)) - time[i].begin() - 1;
| ^
overtaking.cpp:52:95: error: request for member 'begin' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
52 | int idx = lower_bound(time[i].begin(), time[i].end(), make_pair(cur, -1LL)) - time[i].begin() - 1;
| ^~~~~
overtaking.cpp:53:45: warning: pointer to a function used in arithmetic [-Wpointer-arith]
53 | cur = max(cur + s[i - 1] * x, time[i][idx].second);
| ^
overtaking.cpp:53:50: warning: pointer to a function used in arithmetic [-Wpointer-arith]
53 | cur = max(cur + s[i - 1] * x, time[i][idx].second);
| ^
overtaking.cpp:53:52: error: request for member 'second' in '*(time + (((sizetype)i) + ((sizetype)idx)))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
53 | cur = max(cur + s[i - 1] * x, time[i][idx].second);
| ^~~~~~