circle_selection.cpp:12:11: error: 'int kill [300005]' redeclared as different kind of symbol
int kill[N], bound;
^
In file included from /usr/include/c++/7/csignal:42:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:43,
from circle_selection.cpp:1:
/usr/include/signal.h:127:12: note: previous declaration 'int kill(__pid_t, int)'
extern int kill (__pid_t __pid, int __sig) __THROW;
^~~~
circle_selection.cpp: In function 'void update()':
circle_selection.cpp:36:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(!kill[i]){
^
circle_selection.cpp: In function 'int main()':
circle_selection.cpp:61:38: warning: pointer to a function used in arithmetic [-Wpointer-arith]
while(pos <= n && kill[a[pos]]){
^
circle_selection.cpp:73:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
kill[cur] = cur;
^
circle_selection.cpp:73:21: error: assignment of read-only location '*(kill + ((sizetype)cur))'
kill[cur] = cur;
^~~
circle_selection.cpp:73:21: error: cannot convert 'int' to 'int(__pid_t, int) throw () {aka int(int, int) throw ()}' in assignment
circle_selection.cpp:86:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
kill[it] = cur;
^
circle_selection.cpp:86:40: error: assignment of read-only location '*(kill + ((sizetype)it))'
kill[it] = cur;
^~~
circle_selection.cpp:86:40: error: cannot convert 'int' to 'int(__pid_t, int) throw () {aka int(int, int) throw ()}' in assignment
circle_selection.cpp:98:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
cout << kill[i] << " ";
^