citymapping.cpp:10:13: error: 'long long int link [1001]' redeclared as different kind of entity
10 | ll link[1001];
| ^
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /usr/include/c++/11/csignal:42,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:43,
from citymapping.cpp:2:
/usr/include/unistd.h:819:12: note: previous declaration 'int link(const char*, const char*)'
819 | extern int link (const char *__from, const char *__to)
| ^~~~
citymapping.cpp: In function 'void dfs(long long int, long long int)':
citymapping.cpp:21:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
21 | if(link[node]>=3)
| ^
citymapping.cpp:21:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | if(link[node]>=3)
| ~~~~~~~~~~^~~
citymapping.cpp:28:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
28 | link[node]++;
| ^
citymapping.cpp:28:25: warning: ISO C++ forbids incrementing a pointer of type 'int (*)(const char*, const char*) noexcept' [-Wpointer-arith]
28 | link[node]++;
| ~~~~~~~~~^
citymapping.cpp:28:25: error: lvalue required as increment operand
28 | link[node]++;
| ^
citymapping.cpp:35:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
35 | if(link[node]>=3)
| ^
citymapping.cpp:35:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
35 | if(link[node]>=3)
| ~~~~~~~~~~^~~
citymapping.cpp: In function 'void find_roads(int, int, int*, int*, int*)':
citymapping.cpp:48:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
48 | link[i]=0;
| ^
citymapping.cpp:48:16: error: assignment of read-only location '*(link + ((sizetype)i))'
48 | link[i]=0;
| ~~~~~~~^~
citymapping.cpp:66:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
66 | link[1]++;
| ^
citymapping.cpp:66:19: warning: ISO C++ forbids incrementing a pointer of type 'int (*)(const char*, const char*) noexcept' [-Wpointer-arith]
66 | link[1]++;
| ~~~~~~^
citymapping.cpp:66:19: error: lvalue required as increment operand
66 | link[1]++;
| ^
citymapping.cpp:67:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
67 | link[v[i].F]++;
| ^
citymapping.cpp:67:24: warning: ISO C++ forbids incrementing a pointer of type 'int (*)(const char*, const char*) noexcept' [-Wpointer-arith]
67 | link[v[i].F]++;
| ~~~~~~~~~~~^
citymapping.cpp:67:24: error: lvalue required as increment operand
67 | link[v[i].F]++;
| ^