stations.cpp:9:5: error: 'int time' redeclared as different kind of entity
9 | int time;
| ^~~~
In file included from /usr/include/pthread.h:24,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h:148,
from /usr/include/c++/9/ext/atomicity.h:35,
from /usr/include/c++/9/bits/ios_base.h:39,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from stations.cpp:2:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
192 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
stations.cpp: In function 'void DFS(int)':
stations.cpp:12:23: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
12 | labels[node] = (time++) * P;
| ^~
stations.cpp:12:23: error: lvalue required as increment operand
stations.cpp:18:23: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
18 | labels[node] += time++;
| ^~
stations.cpp:18:23: error: lvalue required as increment operand
stations.cpp: In function 'std::vector<int> label(int, int, std::vector<int>, std::vector<int>)':
stations.cpp:24:8: error: assignment of function 'time_t time(time_t*)'
24 | time = 0;
| ~~~~~^~~