0_0_37603978_10901.cpp: In function 'void getAnswer(bool)': 0_0_37603978_10901.cpp:33:42: error: invalid conversion from 'int*' to 'int' [-fpermissive] int pos = upper_bound(stk,stk+top,a[i]); ^