0_0_39652000_7832.cpp: In function 'int main()':
0_0_39652000_7832.cpp:38:26: error: 'check' was not declared in this scope; did you mean 'check2'?
38 | while(head<tail&&check(q[head],q[head+1],i))head++;
| ^~~~~
| check2
0_0_39652000_7832.cpp:43:34: error: 'check' was not declared in this scope; did you mean 'check2'?
43 | while(head<tail&&check(i-t,q[tail-1],q[tail]))tail--;
| ^~~~~
| check2
|