Borderou de evaluare (job #1208223)

Utilizator dm1sevenDan Marius dm1seven Data 15 iulie 2014 07:55:13
Problema Generare de permutari Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:39:65: error: no matching function for call to ‘std::exception::exception(const char [21])’ if (!ifs.is_open()) throw std::exception("Input file not found"); ^ user.cpp:39:65: note: candidates are: In file included from /usr/include/c++/4.8/ios:39:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, 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 [21]’ to ‘const std::exception&’

Ceva nu functioneaza?