Compiler output
prog.cpp: In function 'void ok()':
prog.cpp:13:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if(ap[s[i]]>0)
^
prog.cpp:22:43: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!st.empty() && -ap[st.top()]==ap[s[i]])
^
prog.cpp:22:53: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!st.empty() && -ap[st.top()]==ap[s[i]])
^
prog.cpp:10:11: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
prog.cpp: In function 'int main()':
prog.cpp:38:13: warning: unused variable 'j' [-Wunused-variable]
int n,i,j;
^