biochips.cpp:11:5: error: 'int time' redeclared as different kind of entity
11 | int time = 0;
| ^~~~
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 biochips.cpp:1:
/usr/include/time.h:75:15: note: previous declaration 'time_t time(time_t*)'
75 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
biochips.cpp: In function 'void dfs(int)':
biochips.cpp:14:17: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
14 | in[nod] = ++time;
| ^~~~
biochips.cpp:14:17: error: lvalue required as increment operand
biochips.cpp:15:13: error: invalid types 'int [200005][time_t(time_t*) throw () {aka long int(long int*)}]' for array subscript
15 | ord[time] = nod;
| ^
biochips.cpp:16:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for (int i = 0; i < g[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~
biochips.cpp:21:18: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
21 | out[nod] = ++time;
| ^~~~
biochips.cpp:21:18: error: lvalue required as increment operand
biochips.cpp: In function 'int main()':
biochips.cpp:37:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
37 | for (i = 1; i <= time; i++)
| ^~~~
biochips.cpp:41:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
41 | for (i = 1; i <= time; i++)
| ^~~~
biochips.cpp:48:23: error: invalid types 'int [400005][time_t(time_t*) throw () {aka long int(long int*)}]' for array subscript
48 | cout << dp[m][time];
| ^
biochips.cpp:25:24: warning: unused variable 'k' [-Wunused-variable]
25 | int n, m, i, j, r, k, l, x;
| ^
biochips.cpp:25:27: warning: unused variable 'l' [-Wunused-variable]
25 | int n, m, i, j, r, k, l, x;
| ^