Borderou de evaluare (job #1353493)
Utilizator | Data | 21 februarie 2015 14:20:32 | |
---|---|---|---|
Problema | Por Costel si Meciul | Status | done |
Runda | ONIS 2015, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void makeset(int)’:
user.cpp:23:5: error: reference to ‘rank’ is ambiguous
rank[x] = 0;
^
user.cpp:18:19: note: candidates are: int rank [100005]
int parent[MAXN], rank[MAXN];
^
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/vector:60,
from user.cpp:3:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
user.cpp: In function ‘void link(int, int)’:
user.cpp:28:9: error: reference to ‘rank’ is ambiguous
if (rank[x] > rank[y])
^
user.cpp:18:19: note: candidates are: int rank [100005]
int parent[MAXN], rank[MAXN];
^
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/vector:60,
from user.cpp:3:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
user.cpp:28:19: error: reference to ‘rank’ is ambiguous
if (rank[x] > rank[y])
^
user.cpp:18:19: note: candidates are: int rank [100005]
int parent[MAXN], rank[MAXN];
^
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/vector:60,
from user.cpp:3:
/usr/include/c++/4.8/type_traits:1243:12: note: template<class> struct std::rank
struct rank
^
user.cpp:35:13: error: reference to ‘rank’ is ambiguous
if (rank[x] == rank[y])
^
user.cpp:18:19: note: candidates are: int rank [100005]
int parent[MAXN], rank[MAXN];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !