highway.cpp:13:13: error: 'std::vector<long long int> kill' redeclared as different kind of entity
13 | vector<int> kill;
| ^~~~
In file included from /usr/include/c++/13/csignal:42,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:116,
from highway.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;
| ^~~~
highway.cpp: In function 'long long int calc(std::vector<std::pair<long long int, long long int> >)':
highway.cpp:22:50: warning: pointer to a function used in arithmetic [-Wpointer-arith]
22 | for (int i=0; i<m; ++i)if (kill[i])temp[i]=1;
| ^
highway.cpp: In function 'void find_pair(int, std::vector<int>, std::vector<int>, int, int)':
highway.cpp:40:14: error: request for member 'clear' in 'kill', which is of non-class type 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'}
40 | kill.clear();
| ^~~~~
highway.cpp:41:14: error: request for member 'resize' in 'kill', which is of non-class type 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'}
41 | kill.resize(m, 1);
| ^~~~~~
highway.cpp:62:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
62 | kill[low]=0;
| ^
highway.cpp:62:18: error: assignment of read-only location '*(kill + ((sizetype)low))'
62 | kill[low]=0;
| ~~~~~~~~~^~
highway.cpp:74:68: warning: pointer to a function used in arithmetic [-Wpointer-arith]
74 | if (dj[0][i]<dj[1][i]&&par[0][i]!=-1)kill[par[0][i]]=0;
| ^
highway.cpp:74:69: error: assignment of read-only location '*(kill, (kill + ((sizetype)(& par.std::vector<std::vector<long long int> >::operator[](0))->std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i)))))'
74 | if (dj[0][i]<dj[1][i]&&par[0][i]!=-1)kill[par[0][i]]=0;
| ~~~~~~~~~~~~~~~^~
highway.cpp:75:68: warning: pointer to a function used in arithmetic [-Wpointer-arith]
75 | if (dj[1][i]<dj[0][i]&&par[1][i]!=-1)kill[par[1][i]]=0;
| ^
highway.cpp:75:69: error: assignment of read-only location '*(kill, (kill + ((sizetype)(& par.std::vector<std::vector<long long int> >::operator[](1))->std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i)))))'
75 | if (dj[1][i]<dj[0][i]&&par[1][i]!=-1)kill[par[1][i]]=0;
| ~~~~~~~~~~~~~~~^~