Borderou de evaluare (job #2371261)

Utilizator EdyOnuEdy Onu EdyOnu Data 6 martie 2019 16:58:28
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void answer(SearchFenwickTree&, int, FILE*, FILE*)': main.cpp:123:33: error: no matching function for call to 'std::exception::exception(const char [12])' throw exception("read error!"); ^ In file included from /usr/include/c++/6/ios:39:0, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:5: /usr/include/c++/6/exception:63:5: note: candidate: std::exception::exception() exception() _GLIBCXX_USE_NOEXCEPT { } ^~~~~~~~~ /usr/include/c++/6/exception:63:5: note: candidate expects 0 arguments, 1 provided /usr/include/c++/6/exception:60:9: note: candidate: constexpr std::exception::exception(const std::exception&) class exception ^~~~~~~~~ /usr/include/c++/6/exception:60:9: note: no known conversion for argument 1 from 'const char [12]' to 'const std::exception&' main.cpp:130:35: error: no matching function for call to 'std::exception::exception(const char [12])' throw exception("read error!"); ^ In file included from /usr/include/c++/6/ios:39:0, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:5: /usr/include/c++/6/exception:63:5: note: candidate: std::exception::exception() exception() _GLIBCXX_USE_NOEXCEPT { } ^~~~~~~~~ /usr/include/c++/6/exception:63:5: note: candidate expects 0 arguments, 1 provided /usr/include/c++/6/exception:60:9: note: candidate: constexpr std::exception::exception(const std::exception&) class exception ^~~~~~~~~ /usr/include/c++/6/exception:60:9: note: no known conversion for argument 1 from 'const char [12]' to 'const std::exception&' main.cpp:140:35: error: no matching function for call to 'std::exception::exception(const char [12])' throw exception("read error!"); ^ In file included from /usr/include/c++/6/ios:39:0, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:5: /usr/include/c++/6/exception:63:5: note: candidate: std::exception::exception() exception() _GLIBCXX_USE_NOEXCEPT { } ^~~~~~~~~ /usr/include/c++/6/exception:63:5: note: candidate expects 0 arguments, 1 provided /usr/include/c++/6/exception:60:9: note: candidate: constexpr std::exception::exception(const std::exception&) class exception ^~~~~~~~~ /usr/include/c++/6/exception:60:9: note: no known conversion for argument 1 from 'const char [12]' to 'const std::exception&' main.cpp:144:36: error: no matching function for call to 'std::exception::exception(const char [13])' throw exception("write error!"); ^ In file included from /usr/include/c++/6/ios:39:0, Non zero exit status: 1

Ceva nu functioneaza?