Borderou de evaluare (job #1717631)

Utilizator TwoOfDiamondsDaniel Alexandru Radu TwoOfDiamonds Data 15 iunie 2016 13:24:11
Problema Secventa 6 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:38:31: error: no matching function for call to ‘std::exception::exception(const char*)’ throw new exception(s.c_str()); ^ user.cpp:38:31: note: candidates are: In file included from /usr/include/c++/4.8/ios:39:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/exception:63:5: note: std::exception::exception() exception() _GLIBCXX_USE_NOEXCEPT { } ^ /usr/include/c++/4.8/exception:63:5: note: candidate expects 0 arguments, 1 provided /usr/include/c++/4.8/exception:60:9: note: constexpr std::exception::exception(const std::exception&) class exception ^ /usr/include/c++/4.8/exception:60:9: note: no known conversion for argument 1 from ‘const char*’ to ‘const std::exception&’ user.cpp:50:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (stiva.top() > lastTop) ^

Ceva nu functioneaza?