Borderou de evaluare (job #2605359)
Utilizator | Data | 24 aprilie 2020 19:51:16 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::vector<std::vector<int> > Johnson(Graph&)':
main.cpp:123:57: error: no matching function for call to 'std::exception::exception(const char [32])'
throw std::exception("Exista circuit cu cost negativ!");
^
In file included from /usr/include/c++/6/new:40:0,
from /usr/include/c++/6/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33,
from /usr/include/c++/6/bits/allocator.h:46,
from /usr/include/c++/6/vector:61,
from main.cpp:1:
/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 [32]' to 'const std::exception&'
main.cpp: In function 'int main()':
main.cpp:153:6: warning: unused variable 'start' [-Wunused-variable]
int start;
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !