Borderou de evaluare (job #2299273)

Utilizator VadimCCurca Vadim VadimC Data 9 decembrie 2018 11:11:07
Problema Componente tare conexe 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:45:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < g[x].size(); i++) ~~^~~~~~~~~~~~~ main.cpp: In function 'void dfst(int)': main.cpp:52:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < gt[x].size(); i++) ~~^~~~~~~~~~~~~~ main.cpp:54:23: error: call of overloaded 'to_string(int&)' is ambiguous buffer += to_string(x) + ' '; ^ main.cpp:24:8: note: candidate: std::__cxx11::string to_string(int) string to_string(int); ^~~~~~~~~ In file included from /usr/include/c++/6/string:52:0, from /usr/include/c++/6/bits/locale_classes.h:40, from /usr/include/c++/6/bits/ios_base.h:41, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/c++/6/bits/basic_string.h:5525:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long double) to_string(long double __val) ^~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5516:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(double) to_string(double __val) ^~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5507:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(float) to_string(float __val) ^~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5501:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long long unsigned int) to_string(unsigned long long __val) ^~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5495:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long long int) to_string(long long __val) ^~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5489:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long unsigned int) to_string(unsigned long __val) ^~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5484:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(long int) to_string(long __val) ^~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5478:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(unsigned int) to_string(unsigned __val) ^~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:5473:3: note: candidate: std::__cxx11::string std::__cxx11::to_string(int) to_string(int __val) ^~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?