Borderou de evaluare (job #2464856)
Utilizator | Data | 28 septembrie 2019 23:46:29 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void unire(int, int)':
main.cpp:33:12: error: reference to 'rank' is ambiguous
if(rank[rx]>rank[ry])
^~~~
main.cpp:12:13: note: candidates are: int rank [200002]
int t[Nmax],rank[Nmax];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:171,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
main.cpp:33:21: error: reference to 'rank' is ambiguous
if(rank[rx]>rank[ry])
^~~~
main.cpp:12:13: note: candidates are: int rank [200002]
int t[Nmax],rank[Nmax];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:171,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
main.cpp:38:16: error: reference to 'rank' is ambiguous
if(rank[rx]==rank[ry])
^~~~
main.cpp:12:13: note: candidates are: int rank [200002]
int t[Nmax],rank[Nmax];
^~~~
In file included from /usr/include/c++/6/bits/move.h:57:0,
from /usr/include/c++/6/bits/nested_exception.h:40,
from /usr/include/c++/6/exception:171,
from /usr/include/c++/6/ios:39,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/type_traits:1482:12: note: template<class> struct std::rank
struct rank
^~~~
main.cpp:38:26: error: reference to 'rank' is ambiguous
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !