Borderou de evaluare (job #2289776)
Utilizator | Data | 25 noiembrie 2018 11:38:47 | |
---|---|---|---|
Problema | Ninjago | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void citire()':
main.cpp:27:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=0;j<4;j++)
^~~
main.cpp:30:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
l.taxa=nr;
^
main.cpp: In function 'void dfs(int)':
main.cpp:39:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<v[nod].size();j++)
~^~~~~~~~~~~~~~
main.cpp: In function 'void Kruskal()':
main.cpp:50:17: error: 'Min' was not declared in this scope
nr1=nr1+Min;
^~~
main.cpp:61:16: error: no match for 'operator=' (operand types are 'std::set<std::pair<int, int> >' and 'int')
c=0; p=1;
^
In file included from /usr/include/c++/6/set:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:87,
from main.cpp:2:
/usr/include/c++/6/bits/stl_set.h:266:7: note: candidate: std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(const std::set<_Key, _Compare, _Alloc>&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]
operator=(const set& __x)
^~~~~~~~
/usr/include/c++/6/bits/stl_set.h:266:7: note: no known conversion for argument 1 from 'int' to 'const std::set<std::pair<int, int> >&'
/usr/include/c++/6/bits/stl_set.h:275:7: note: candidate: std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(std::set<_Key, _Compare, _Alloc>&&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]
operator=(set&&) = default;
^~~~~~~~
/usr/include/c++/6/bits/stl_set.h:275:7: note: no known conversion for argument 1 from 'int' to 'std::set<std::pair<int, int> >&&'
/usr/include/c++/6/bits/stl_set.h:289:7: note: candidate: std::set<_Key, _Compare, _Alloc>& std::set<_Key, _Compare, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]
operator=(initializer_list<value_type> __l)
^~~~~~~~
/usr/include/c++/6/bits/stl_set.h:289:7: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<std::pair<int, int> >'
main.cpp:61:19: error: 'p' was not declared in this scope
c=0; p=1;
^
main.cpp:88:21: error: no match for 'operator+' (operand types are 'long long int' and 'std::set<std::pair<int, int> >')
s=s+c;
~^~
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:2:
/usr/include/c++/6/bits/stl_iterator.h:341:5: note: candidate: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)
operator+(typename reverse_iterator<_Iterator>::difference_type __n,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !