0_0_39405073_7619.cpp:10:5: error: 'int time' redeclared as different kind of entity
10 | int time;
| ^~~~
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_39405073_7619.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_39405073_7619.cpp: In function 'int main()':
0_0_39405073_7619.cpp:72:14: error: assignment of function 'time_t time(time_t*)'
72 | time = 0;
| ~~~~~^~~
0_0_39405073_7619.cpp:74:17: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'int' [-fpermissive]
74 | DFS(l,r,time);
| ^~~~
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_39405073_7619.cpp:22:26: note: initializing argument 3 of 'void DFS(int, int, int)'
22 | void DFS(int x,int y,int time) {
| ~~~~^~~~
|