overtaking.cpp:8:41: error: 'std::vector<std::vector<std::vector<std::pair<long long int, long long int> > > > time' redeclared as different kind of entity
8 | vector<vector<vector<pair<ll, ll>>>>time(1089,vector<pair<ll,ll>>());
| ^
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:16:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
16 | time[i].clear();
| ^
overtaking.cpp:16:16: 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'}
16 | time[i].clear();
| ^~~~~
overtaking.cpp:38:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
38 | time[j].push_back(make_pair(-1,0));
| ^
overtaking.cpp:38: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'}
38 | time[j].push_back(make_pair(-1,0));
| ^~~~~~~~~
overtaking.cpp:46:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
46 | time[j].push_back(make_pair(x[i].first,max(mx,mx2)));
| ^
overtaking.cpp:46: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'}
46 | time[j].push_back(make_pair(x[i].first,max(mx,mx2)));
| ^~~~~~~~~
overtaking.cpp: In function 'll arrival_time(ll)':
overtaking.cpp:51:12: error: 'arrival' was not declared in this scope; did you mean 'arriva'?
51 | ll cur=arrival;
| ^~~~~~~
| arriva
overtaking.cpp:53:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
53 | int idx=lower_bound(time[i].begin(),time[i].end(),{cur,-1})-time[i].begin()-1;
| ^
overtaking.cpp:53:37: 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'}
53 | int idx=lower_bound(time[i].begin(),time[i].end(),{cur,-1})-time[i].begin()-1;
| ^~~~~
overtaking.cpp:53:51: warning: pointer to a function used in arithmetic [-Wpointer-arith]
53 | int idx=lower_bound(time[i].begin(),time[i].end(),{cur,-1})-time[i].begin()-1;
| ^
overtaking.cpp:53:53: 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'}
53 | int idx=lower_bound(time[i].begin(),time[i].end(),{cur,-1})-time[i].begin()-1;
| ^~~
overtaking.cpp:53:75: warning: pointer to a function used in arithmetic [-Wpointer-arith]
53 | int idx=lower_bound(time[i].begin(),time[i].end(),{cur,-1})-time[i].begin()-1;
| ^
overtaking.cpp:53:77: 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'}
53 | int idx=lower_bound(time[i].begin(),time[i].end(),{cur,-1})-time[i].begin()-1;
| ^~~~~
overtaking.cpp:54:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
54 | cur=max(cur+s[i-1]*x,time[i][idx].second);
| ^
overtaking.cpp:54:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
54 | cur=max(cur+s[i-1]*x,time[i][idx].second);
| ^
overtaking.cpp:54:43: 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'}
54 | cur=max(cur+s[i-1]*x,time[i][idx].second);
| ^~~~~~