0_0_28550181_29810.cpp: In function 'bool check(int)': 0_0_28550181_29810.cpp:13:47: error: invalid conversion from 'int*' to 'int' [-fpermissive] s = upper_bound (pos , pos + n, pos[s] + x) - 1; ^