archery.cpp: In function 'std::pair<int, int> simulate(int)':
archery.cpp:32:9: error: reference to 'rank' is ambiguous
32 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~
archery.cpp:34:14: error: reference to 'rank' is ambiguous
34 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~
archery.cpp:57:28: error: reference to 'rank' is ambiguous
57 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~
archery.cpp:68:23: error: reference to 'rank' is ambiguous
68 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~
archery.cpp:78:23: error: reference to 'rank' is ambiguous
78 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~
archery.cpp:80:29: error: reference to 'rank' is ambiguous
80 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~
archery.cpp:84:23: error: reference to 'rank' is ambiguous
84 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~
archery.cpp:86:29: error: reference to 'rank' is ambiguous
86 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~
archery.cpp:198:28: error: reference to 'rank' is ambiguous
198 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~
archery.cpp: In function 'int main()':
archery.cpp:355:5: error: reference to 'rank' is ambiguous
355 | 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:1:
/usr/include/c++/10/type_traits:1359:12: note: candidates are: 'template<class> struct std::rank'
1359 | struct rank
| ^~~~
archery.cpp:13:5: note: 'int rank'
13 | int rank;
| ^~~~