watching.cpp: In function 'bool check(long long int)':
watching.cpp:13:16: error: invalid types 'long long int[long long int]' for array subscript
13 | ll xx=a[i+1]-a[i]+1, yy=a[i+2]-a[i]+1;
| ^
watching.cpp:13:23: error: invalid types 'long long int[long long int]' for array subscript
13 | ll xx=a[i+1]-a[i]+1, yy=a[i+2]-a[i]+1;
| ^
watching.cpp:14:16: error: 'yy' was not declared in this scope; did you mean 'yn'?
14 | if(2*x-yy >= x-xx && x!=0) x--, i++;
| ^~
| yn
watching.cpp:15:41: error: 'y' was not declared in this scope
15 | else if(2*x-yy >= x-xx && x==0) y--, i+=2;
| ^
watching.cpp:16:34: error: 'y' was not declared in this scope
16 | else if(2*x-yy < x-xx && y!=0) y--, i+=2;
| ^