popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:24:18: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
while(!st.size()>1) {dmr[st.top()]=N-1; st.pop();}
^
popa.cpp:24:8: note: add parentheses around left hand side expression to silence this warning
while(!st.size()>1) {dmr[st.top()]=N-1; st.pop();}
^~~~~~~~~~
( )
popa.cpp:24:18: warning: comparison of constant '1' with boolean expression is always false [-Wbool-compare]
while(!st.size()>1) {dmr[st.top()]=N-1; st.pop();}
~~~~~~~~~~^~
popa.cpp: In function 'int rek(int, int)':
popa.cpp:12:7: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
rs[l]=rek(l+1,rt);
~~~~~^~~~~~~~~~~~