zarulje.cpp:12:17: error: 'std::stack<long long int> kill [262144]' redeclared as different kind of entity
12 | stack<int>kill[N],l,r;
| ^
In file included from /usr/include/c++/10/csignal:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:43,
from zarulje.cpp:1:
/usr/include/signal.h:112:12: note: previous declaration 'int kill(__pid_t, int)'
112 | extern int kill (__pid_t __pid, int __sig) __THROW;
| ^~~~
zarulje.cpp: In function 'int main()':
zarulje.cpp:43:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
43 | kill[i].push(R),mp2[R]--,r.pop();
| ^
zarulje.cpp:43:21: error: request for member 'push' in '*(kill + ((sizetype)i))', which is of non-class type 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'}
43 | kill[i].push(R),mp2[R]--,r.pop();
| ^~~~
zarulje.cpp:50:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
50 | while(kill[i+1].size())
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
zarulje.cpp:50:25: error: request for member 'size' in '*(kill + (((sizetype)i) + 1))', which is of non-class type 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'}
50 | while(kill[i+1].size())
| ^~~~
zarulje.cpp:51:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
51 | r.push(kill[i+1].top()),res[i]=res[i]*pw(get(R))%M,mp2[R]++,res[i]=res[i]*get(R)%M,kill[i+1].pop();
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
zarulje.cpp:51:30: error: request for member 'top' in '*(kill + (((sizetype)i) + 1))', which is of non-class type 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'}
51 | r.push(kill[i+1].top()),res[i]=res[i]*pw(get(R))%M,mp2[R]++,res[i]=res[i]*get(R)%M,kill[i+1].pop();
| ^~~
zarulje.cpp:51:104: warning: pointer to a function used in arithmetic [-Wpointer-arith]
51 | r.push(kill[i+1].top()),res[i]=res[i]*pw(get(R))%M,mp2[R]++,res[i]=res[i]*get(R)%M,kill[i+1].pop();
| ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
zarulje.cpp:51:106: error: request for member 'pop' in '*(kill + (((sizetype)i) + 1))', which is of non-class type 'int(__pid_t, int) noexcept' {aka 'int(int, int) noexcept'}
51 | r.push(kill[i+1].top()),res[i]=res[i]*pw(get(R))%M,mp2[R]++,res[i]=res[i]*get(R)%M,kill[i+1].pop();
| ^~~