mokesciai.cpp: In function 'void tour(int)':
mokesciai.cpp:10:2: error: reference to 'left' is ambiguous
10 | left[x]=cnt++;
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from mokesciai.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mokesciai.cpp:4:35: note: 'int left [200005]'
4 | int par[18][200005], dep[200005], left[200005], right[200005];
| ^~~~
mokesciai.cpp:14:2: error: reference to 'right' is ambiguous
14 | right[x]=cnt;
| ^~~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from mokesciai.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mokesciai.cpp:4:49: note: 'int right [200005]'
4 | int par[18][200005], dep[200005], left[200005], right[200005];
| ^~~~~
mokesciai.cpp: In function 'int main()':
mokesciai.cpp:49:8: error: reference to 'left' is ambiguous
49 | que[left[up]].push_back(right[up]);
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from mokesciai.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
mokesciai.cpp:4:35: note: 'int left [200005]'
4 | int par[18][200005], dep[200005], left[200005], right[200005];
| ^~~~
mokesciai.cpp:49:28: error: reference to 'right' is ambiguous
49 | que[left[up]].push_back(right[up]);
| ^~~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from mokesciai.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
mokesciai.cpp:4:49: note: 'int right [200005]'
4 | int par[18][200005], dep[200005], left[200005], right[200005];
| ^~~~~