foo.cc:7:68: error: 'long long int time [1000000]' redeclared as different kind of symbol
long long ans,m,n,x,y,h,geshu[1000000],guojia[1000000],time[1000000];
^
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 foo.cc:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
foo.cc: In function 'int main()':
foo.cc:15:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[++h]=x;
^
foo.cc:15:23: error: assignment of read-only location '*(time + ((sizetype)(++ h)))'
time[++h]=x;
^
foo.cc:15:23: error: cannot convert 'long long int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)