dango3.cpp:21:16: error: 'int kill [100000]' redeclared as different kind of entity
21 | int kill[100000];
| ^
In file included from /usr/include/c++/10/csignal:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:43,
from dango3.cpp:2:
/usr/include/signal.h:112:12: note: previous declaration 'int kill(__pid_t, int)'
112 | extern int kill (__pid_t __pid, int __sig) __THROW;
| ^~~~
dango3.cpp: In lambda function:
dango3.cpp:33:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
33 | if(kill[i] && kill[i]<it) continue;
| ^
dango3.cpp:33:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
33 | if(kill[i] && kill[i]<it) continue;
| ^
dango3.cpp:33:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
33 | if(kill[i] && kill[i]<it) continue;
| ~~~~~~~^~~
dango3.cpp: In function 'void solve(int, int, int, int)':
dango3.cpp:45:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
45 | kill[p]=it;
| ^
dango3.cpp:45:10: error: assignment of read-only location '*(kill + ((sizetype)p))'
45 | kill[p]=it;
| ~~~~~~~^~~
dango3.cpp: In function 'void Solve(int, int)':
dango3.cpp:58:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
58 | if(kill[i]==it){
| ^
dango3.cpp:58:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
58 | if(kill[i]==it){
| ~~~~~~~^~~~