Borderou de evaluare (job #3256179)

Utilizator Mihai_OctMihai Octavian Mihai_Oct Data 13 noiembrie 2024 17:42:02
Problema Ciclu Eulerian Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Dfs(int)': main.cpp:27:16: error: no matching function for call to 'std::vector<Muchie>::push_back(int&)' 27 | r.push_back(nod); | ~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/12.2.1/vector:64, from /usr/include/c++/12.2.1/functional:62, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Muchie; _Alloc = std::allocator<Muchie>; value_type = Muchie]' 1276 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from 'int' to 'const std::vector<Muchie>::value_type&' {aka 'const Muchie&'} 1276 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = Muchie; _Alloc = std::allocator<Muchie>; value_type = Muchie]' 1293 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from 'int' to 'std::vector<Muchie>::value_type&&' {aka 'Muchie&&'} 1293 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp: In function 'int main()': main.cpp:53:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Muchie>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 53 | for(int i = 0; i < r.size() - 1; i++) fout << r[i] << " "; | ~~^~~~~~~~~~~~~~ main.cpp:53:48: error: no match for 'operator<<' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<Muchie>, Muchie>::value_type' {aka 'Muchie'}) 53 | for(int i = 0; i < r.size() - 1; i++) fout << r[i] << " "; In file included from /usr/include/c++/12.2.1/istream:39, from /usr/include/c++/12.2.1/sstream:38, from /usr/include/c++/12.2.1/complex:45, from /usr/include/c++/12.2.1/ccomplex:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54: /usr/include/c++/12.2.1/ostream:108:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 108 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/12.2.1/ostream:108:36: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<Muchie>, Muchie>::value_type' {aka 'Muchie'} to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 108 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/ostream:117:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 117 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/12.2.1/ostream:117:32: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<Muchie>, Muchie>::value_type' {aka 'Muchie'} to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 117 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/ostream:127:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 127 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/12.2.1/ostream:127:30: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<Muchie>, Muchie>::value_type' {aka 'Muchie'} to 'std::ios_base& (*)(std::ios_base&)' 127 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/ostream:166:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' Non zero exit status: 1

Ceva nu functioneaza?