treasure.cpp: In function 'int f(std::vector<std::pair<int, int> >, int, int, int)':
treasure.cpp:45:10: error: reference to 'right' is ambiguous
45 | knew = right - knew;
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from treasure.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
treasure.cpp:9:27: note: 'int right'
9 | int area, included, line, right, left;
| ^~~~~
treasure.cpp:56:10: error: reference to 'left' is ambiguous
56 | knew = left - knew;
| ^~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from treasure.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
treasure.cpp:9:34: note: 'int left'
9 | int area, included, line, right, left;
| ^~~~
treasure.cpp: In function 'void findTreasure(int)':
treasure.cpp:86:4: error: reference to 'right' is ambiguous
86 | right = HOR[N] - HOR[j];
| ^~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from treasure.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
treasure.cpp:9:27: note: 'int right'
9 | int area, included, line, right, left;
| ^~~~~
treasure.cpp:87:4: error: reference to 'left' is ambiguous
87 | left = HOR[j];
| ^~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from treasure.cpp:2:
/usr/include/c++/9/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
treasure.cpp:9:34: note: 'int left'
9 | int area, included, line, right, left;
| ^~~~