harvest.cpp:18:15: error: 'll time [200010]' redeclared as different kind of symbol
ll time[200010];
^
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h:148,
from /usr/include/c++/7/ext/atomicity.h:35,
from /usr/include/c++/7/bits/ios_base.h:39,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from harvest.cpp:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
harvest.cpp: In function 'int main()':
harvest.cpp:51:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
lst[id].eb(time[id],tm-time[id]);
^
harvest.cpp:51:47: warning: pointer to a function used in arithmetic [-Wpointer-arith]
lst[id].eb(time[id],tm-time[id]);
^
harvest.cpp:51:39: error: invalid operands of types 'll {aka long long int}' and 'time_t(time_t*) noexcept {aka long int(long int*) noexcept}' to binary 'operator-'
lst[id].eb(time[id],tm-time[id]);
~~^~~~~~~~~
harvest.cpp:56:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
lst[id].eb(time[id]=tm,-1);
^
harvest.cpp:56:37: error: assignment of read-only location '*(time + ((sizetype)id))'
lst[id].eb(time[id]=tm,-1);
^~
harvest.cpp:56:37: error: cannot convert 'll {aka long long int}' to 'time_t(time_t*) noexcept {aka long int(long int*) noexcept}' in assignment
harvest.cpp:59:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[id]=tm;
^
harvest.cpp:59:22: error: assignment of read-only location '*(time + ((sizetype)id))'
time[id]=tm;
^~
harvest.cpp:59:22: error: cannot convert 'll {aka long long int}' to 'time_t(time_t*) noexcept {aka long int(long int*) noexcept}' in assignment