Borderou de evaluare (job #3175826)
Utilizator | Data | 26 noiembrie 2023 13:57:51 | |
---|---|---|---|
Problema | Apm2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void init()':
main.cpp:41:9: error: reference to 'rank' is ambiguous
41 | rank[i] = 0;
| ^~~~
In file included from /usr/include/c++/12.2.1/bits/move.h:57,
from /usr/include/c++/12.2.1/bits/exception_ptr.h:43,
from /usr/include/c++/12.2.1/exception:168,
from /usr/include/c++/12.2.1/ios:39,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:9:
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
| ^~~~
main.cpp:20:13: note: 'std::vector<int> rank'
20 | vector<int> rank(100005);
| ^~~~
main.cpp: In function 'bool unionSets(int, int)':
main.cpp:58:13: error: reference to 'rank' is ambiguous
58 | if (rank[rootX] < rank[rootY]) {
| ^~~~
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
| ^~~~
main.cpp:20:13: note: 'std::vector<int> rank'
20 | vector<int> rank(100005);
| ^~~~
main.cpp:58:27: error: reference to 'rank' is ambiguous
58 | if (rank[rootX] < rank[rootY]) {
| ^~~~
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
| ^~~~
main.cpp:20:13: note: 'std::vector<int> rank'
20 | vector<int> rank(100005);
| ^~~~
main.cpp:60:20: error: reference to 'rank' is ambiguous
60 | } else if (rank[rootX] > rank[rootY]) {
| ^~~~
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
| ^~~~
main.cpp:20:13: note: 'std::vector<int> rank'
20 | vector<int> rank(100005);
| ^~~~
main.cpp:60:34: error: reference to 'rank' is ambiguous
60 | } else if (rank[rootX] > rank[rootY]) {
| ^~~~
/usr/include/c++/12.2.1/type_traits:1394:12: note: candidates are: 'template<class> struct std::rank'
1394 | struct rank
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !