Borderou de evaluare (job #2336888)

Utilizator felixiPuscasu Felix felixi Data 5 februarie 2019 17:22:59
Problema Cartite Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int)': main.cpp:31:33: error: no matching function for call to 'swap(std::vector<int>&, __gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&)' swap(G[i], G[nod].back()); ^ In file included from /usr/include/c++/6/complex:45:0, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52, from main.cpp:1: /usr/include/c++/6/sstream:796:5: note: candidate: template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>&) swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, ^~~~ /usr/include/c++/6/sstream:796:5: note: template argument deduction/substitution failed: main.cpp:31:33: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>' swap(G[i], G[nod].back()); ^ In file included from /usr/include/c++/6/complex:45:0, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52, from main.cpp:1: /usr/include/c++/6/sstream:803:5: note: candidate: template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>&) swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, ^~~~ /usr/include/c++/6/sstream:803:5: note: template argument deduction/substitution failed: main.cpp:31:33: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>' swap(G[i], G[nod].back()); ^ In file included from /usr/include/c++/6/complex:45:0, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52, from main.cpp:1: /usr/include/c++/6/sstream:810:5: note: candidate: template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>&) swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, ^~~~ /usr/include/c++/6/sstream:810:5: note: template argument deduction/substitution failed: main.cpp:31:33: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>' swap(G[i], G[nod].back()); ^ In file included from /usr/include/c++/6/complex:45:0, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52, from main.cpp:1: /usr/include/c++/6/sstream:817:5: note: candidate: template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>&, std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>&) swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, ^~~~ /usr/include/c++/6/sstream:817:5: note: template argument deduction/substitution failed: main.cpp:31:33: note: 'std::vector<int>' is not derived from 'std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>' swap(G[i], G[nod].back()); ^ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, Non zero exit status: 1

Ceva nu functioneaza?