Borderou de evaluare (job #1678547)
Utilizator | Data | 7 aprilie 2016 13:42:40 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:9: error: field ‘parent’ has incomplete type
Nod parent;
^
user.cpp: In function ‘Nod makeset(int)’:
user.cpp:11:3: error: ‘struct Nod’ has no member named ‘parent’
k.parent=k;
^
user.cpp: In function ‘Nod findset(Nod)’:
user.cpp:16:7: error: ‘struct Nod’ has no member named ‘parent’
if (x.parent!=x) x.parent=findset(x.parent);
^
user.cpp:16:20: error: ‘struct Nod’ has no member named ‘parent’
if (x.parent!=x) x.parent=findset(x.parent);
^
user.cpp:16:37: error: ‘struct Nod’ has no member named ‘parent’
if (x.parent!=x) x.parent=findset(x.parent);
^
user.cpp:17:10: error: ‘struct Nod’ has no member named ‘parent’
return x.parent;
^
user.cpp: In function ‘void Union(Nod, Nod)’:
user.cpp:23:10: error: no match for ‘operator==’ (operand types are ‘Nod’ and ‘Nod’)
if (xroot==yroot) return;
^
user.cpp:23:10: note: candidates are:
In file included from /usr/include/c++/4.8/iosfwd:40:0,
from /usr/include/c++/4.8/ios:38,
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/bits/postypes.h:216:5: note: template<class _StateT> bool std::operator==(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
^
/usr/include/c++/4.8/bits/postypes.h:216:5: note: template argument deduction/substitution failed:
user.cpp:23:12: note: ‘Nod’ is not derived from ‘const std::fpos<_StateT>’
if (xroot==yroot) return;
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
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/bits/stl_pair.h:214:5: note: template<class _T1, class _T2> constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/include/c++/4.8/bits/stl_pair.h:214:5: note: template argument deduction/substitution failed:
user.cpp:23:12: note: ‘Nod’ is not derived from ‘const std::pair<_T1, _T2>’
if (xroot==yroot) return;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !