0_0_39478645_30109.cpp:9:80: error: 'int time' redeclared as different kind of entity
9 | int dir[4][2]={{-1,0},{1,0},{0,1},{0,-1}},k1[810][810],r,vis[810][810],t,cnt=0,time=0;
| ^~~~
In file included from gcc-13.1.0/x86_64-w64-mingw32/include/pthread.h:69,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/atomicity.h:35,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:39,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_39478645_30109.cpp:1:
gcc-13.1.0/x86_64-w64-mingw32/include/time.h:256:34: note: previous declaration 'time_t time(time_t*)'
256 | static __inline time_t __CRTDECL time(time_t *_Time) { return _time64(_Time); }
| ^~~~
0_0_39478645_30109.cpp: In function 'int cag(int, int)':
0_0_39478645_30109.cpp:19:44: error: invalid operands of types 'int' and 'time_t(time_t*)' {aka 'long long int(long long int*)'} to binary 'operator*'
19 | if(abs(x-vs[i].x)+abs(y-vs[i].y)<=2*time)
| ~^~~~~
| | |
| | time_t(time_t*) {aka long long int(long long int*)}
| int
0_0_39478645_30109.cpp: In function 'int dbfs()':
0_0_39478645_30109.cpp:60:9: error: assignment of function 'time_t time(time_t*)'
60 | time=0;
| ~~~~^~
0_0_39478645_30109.cpp:63:9: error: lvalue required as increment operand
63 | time++;
| ^~~~
0_0_39478645_30109.cpp:67:24: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'int' [-fpermissive]
67 | return time;
| ^~~~
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_39478645_30109.cpp:70:20: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'int' [-fpermissive]
70 | return time;
| ^~~~
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
|