archery.cpp: In function 'std::pair<int, int> simulate(int)':
archery.cpp:40:9: error: reference to 'rank' is ambiguous
40 | if (rank == 1)
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~
archery.cpp:42:14: error: reference to 'rank' is ambiguous
42 | else if (rank <= n + 1)
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~
archery.cpp:65:28: error: reference to 'rank' is ambiguous
65 | if (ranks[i] < rank)
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~
archery.cpp:76:23: error: reference to 'rank' is ambiguous
76 | archer2 = rank;
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~
archery.cpp:86:23: error: reference to 'rank' is ambiguous
86 | if (archer1 < rank)
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~
archery.cpp:88:29: error: reference to 'rank' is ambiguous
88 | else if (archer1 == rank)
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~
archery.cpp:92:23: error: reference to 'rank' is ambiguous
92 | if (archer2 < rank)
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~
archery.cpp:94:29: error: reference to 'rank' is ambiguous
94 | else if (archer2 == rank)
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~
archery.cpp:206:28: error: reference to 'rank' is ambiguous
206 | if (ranks[i] > rank)
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~
archery.cpp: In function 'int main()':
archery.cpp:363:5: error: reference to 'rank' is ambiguous
363 | rank = ranks[0];
| ^~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from archery.cpp:9:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:21:5: note: 'int rank'
21 | int rank;
| ^~~~