Borderou de evaluare (job #1845258)
| Utilizator | Data | 11 ianuarie 2017 08:09:47 | |
|---|---|---|---|
| Problema | Arbore partial de cost minim | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Unite(int, int)’:
user.cpp:37:8: error: reference to ‘rank’ is ambiguous
if(rank[x]>rank[y])
^
user.cpp:16:5: note: candidates are: int rank [200005]
int rank[NMax],father[NMax];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/bits/stl_algobase.h:64,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
user.cpp:37:16: error: reference to ‘rank’ is ambiguous
if(rank[x]>rank[y])
^
user.cpp:16:5: note: candidates are: int rank [200005]
int rank[NMax],father[NMax];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/bits/stl_algobase.h:64,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
user.cpp:41:8: error: reference to ‘rank’ is ambiguous
if(rank[x]==rank[y])
^
user.cpp:16:5: note: candidates are: int rank [200005]
int rank[NMax],father[NMax];
^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/bits/stl_algobase.h:64,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
