bitaro.cpp:7:17: error: 'int close [111111]' redeclared as different kind of entity
7 | int close[111111];
| ^
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 bitaro.cpp:1:
/usr/include/unistd.h:358:12: note: previous declaration 'int close(int)'
358 | extern int close (int __fd);
| ^~~~~
bitaro.cpp: In function 'int main()':
bitaro.cpp:47:38: warning: pointer to a function used in arithmetic [-Wpointer-arith]
47 | for(int i=1;i<=n;i++) close[i]=0;
| ^
bitaro.cpp:47:39: error: assignment of read-only location '*(close + ((sizetype)i))'
47 | for(int i=1;i<=n;i++) close[i]=0;
| ~~~~~~~~^~
bitaro.cpp:51:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
51 | close[x]=1;
| ^
bitaro.cpp:51:21: error: assignment of read-only location '*(close + ((sizetype)x))'
51 | close[x]=1;
| ~~~~~~~~^~
bitaro.cpp:65:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
65 | if(close[i]) continue;
| ^
bitaro.cpp:76:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
76 | if(!close[x.second])
| ^