/in/foo.cc:5:11: error: 'int time [100]' redeclared as different kind of symbol
int time[N],jz[N];
^
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 /in/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;
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:11:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf("%d%d",&time[i],&jz[i]);
^
/in/foo.cc:11:31: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wformat=]
scanf("%d%d",&time[i],&jz[i]);
~~~~~~~~ ^
/in/foo.cc:14:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[j]<time[i])
^
/in/foo.cc:14:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[j]<time[i])
^
/in/foo.cc:16:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a=time[i];
^
/in/foo.cc:16:13: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive]
a=time[i];
~~~~~~^
/in/foo.cc:18:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i]=time[j];
^
/in/foo.cc:18:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i]=time[j];
^
/in/foo.cc:18:19: error: assignment of read-only location '*(time + ((sizetype)i))'
/in/foo.cc:18:19: error: cannot convert 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
/in/foo.cc:20:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[j]=a;
^
/in/foo.cc:20:13: error: assignment of read-only location '*(time + ((sizetype)j))'
time[j]=a;
^
/in/foo.cc:20:13: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
/in/foo.cc:28:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a+=time[i];
^
/in/foo.cc:28:4: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a+=time[i];
~^~~~~~~~~
/in/foo.cc:28:4: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive]