Borderou de evaluare (job #3227941)
Utilizator | Data | 4 mai 2024 01:10:00 | |
---|---|---|---|
Problema | Heapuri cu reuniune | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'V FibonacciHeap<V>::getMaximum()':
main.cpp:214:23: error: there are no arguments to 'runtime_error' that depend on a template parameter, so a declaration of 'runtime_error' must be available [-fpermissive]
214 | throw(runtime_error("Can't get maximum! Heap is empty!"));
| ^~~~~~~~~~~~~
main.cpp:214:23: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
main.cpp: In member function 'V FibonacciHeap<V>::extractMax()':
main.cpp:250:23: error: there are no arguments to 'runtime_error' that depend on a template parameter, so a declaration of 'runtime_error' must be available [-fpermissive]
250 | throw(runtime_error("Can't pop! Heap is empty!"));
| ^~~~~~~~~~~~~
main.cpp: In instantiation of 'V FibonacciHeap<V>::extractMax() [with V = int]':
main.cpp:299:48: required from here
main.cpp:250:36: error: 'runtime_error' was not declared in this scope; did you mean 'std::runtime_error'?
250 | throw(runtime_error("Can't pop! Heap is empty!"));
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| std::runtime_error
In file included from /usr/include/c++/12.2.1/system_error:41,
from /usr/include/c++/12.2.1/bits/ios_base.h:46,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/stdexcept:219:9: note: 'std::runtime_error' declared here
219 | class runtime_error : public exception
| ^~~~~~~~~~~~~
main.cpp: In member function 'V FibonacciHeap<V>::extractMax() [with V = int]':
main.cpp:251:9: warning: control reaches end of non-void function [-Wreturn-type]
251 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !