sphinx.cpp: In function 'std::vector<int> find_colours(int, std::vector<int>, std::vector<int>)':
sphinx.cpp:47:17: error: expected '}' before 'else'
47 | else{r = mid;//cout<<"ranfunction#22"<<"\n";}
| ^~~~
sphinx.cpp:46:42: note: to match this '{'
46 | if (found != mid - l + 1){l = mid + 1;//cout<<"ranfunction#11"<<"\n";}
| ^
sphinx.cpp:49:13: error: expected '}' before 'else'
49 | else{
| ^~~~
sphinx.cpp:45:34: note: to match this '{'
45 | if (l==0 && mid+2==n){
| ^
sphinx.cpp:51:17: error: expected '}' before 'else'
51 | else{r = mid;//cout<<"ranfunction#2"<<"\n";}
| ^~~~
sphinx.cpp:50:42: note: to match this '{'
50 | if (found != mid - l + 2){l = mid + 1;//cout<<"ranfunction#1"<<"\n";}
| ^
sphinx.cpp:58:2: error: expected '}' at end of input
58 | }
| ^
sphinx.cpp:13:62: note: to match this '{'
13 | vector<int> find_colours(int N, vector<int> X, vector<int> Y){
| ^
sphinx.cpp:58:2: warning: control reaches end of non-void function [-Wreturn-type]
58 | }
| ^