Borderou de evaluare (job #1817588)
Utilizator | Data | 28 noiembrie 2016 02:12:26 | |
---|---|---|---|
Problema | Granita | 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:72:57: error: no matching function for call to ‘std::exception::exception(const char [31])’
throw std::exception("Error opening file granita.out");
^
user.cpp:72:57: note: candidates are:
In file included from /usr/include/c++/4.8/new:40:0,
from /usr/include/c++/4.8/bits/stl_construct.h:59,
from /usr/include/c++/4.8/bits/stl_tempbuf.h:60,
from /usr/include/c++/4.8/bits/stl_algo.h:62,
from /usr/include/c++/4.8/algorithm:62,
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 [31]’ to ‘const std::exception&’
user.cpp:78:50: error: no matching function for call to ‘std::exception::exception(const char [26])’
throw std::exception("file granita.in not found");
^
user.cpp:78:50: note: candidates are:
In file included from /usr/include/c++/4.8/new:40:0,
from /usr/include/c++/4.8/bits/stl_construct.h:59,
from /usr/include/c++/4.8/bits/stl_tempbuf.h:60,
from /usr/include/c++/4.8/bits/stl_algo.h:62,
from /usr/include/c++/4.8/algorithm:62,
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 [26]’ to ‘const std::exception&’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !