Borderou de evaluare (job #2955135)
Utilizator | Data | 16 decembrie 2022 13:44:08 | |
---|---|---|---|
Problema | Lanterna | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int Dijkstra(int)':
main.cpp:13:54: error: 'INT_MAX' was not declared in this scope
13 | vector<vector<int> > timp (n+1, vector<int>(k+1, INT_MAX));
| ^~~~~~~
main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
5 | #include <algorithm>
+++ |+#include <climits>
6 | #define inf 1e9+1
main.cpp:16:16: error: 'make_tuple' was not declared in this scope
16 | queue.push(make_tuple(1, 0, wattK));
| ^~~~~~~~~~
main.cpp:6:1: note: 'std::make_tuple' is defined in header '<tuple>'; did you forget to '#include <tuple>'?
5 | #include <algorithm>
+++ |+#include <tuple>
6 | #define inf 1e9+1
main.cpp:17:26: error: aggregate 'std::tuple<int, int, int> muchieCurenta' has incomplete type and cannot be defined
17 | tuple<int, int, int> muchieCurenta;
| ^~~~~~~~~~~~~
main.cpp:26:19: error: 'std::tuple<int, int, int> nextEdge' has incomplete type
26 | for (auto nextEdge : graf[nodMuchieCurent]){
| ^~~~~~~~
main.cpp:28:49: error: 'nextEdgeWatt' was not declared in this scope; did you mean 'nextEdgeNode'?
28 | int wattRamasi = wattMuchieCurent - nextEdgeWatt;
| ^~~~~~~~~~~~
| nextEdgeNode
main.cpp:35:96: error: 'nextEdgeTime' was not declared in this scope; did you mean 'nextEdgeNode'?
35 | if (timp[nextEdgeNode][wattRamasi] > timp[nodMuchieCurent][wattMuchieCurent] + nextEdgeTime){
| ^~~~~~~~~~~~
| nextEdgeNode
In file included from /usr/include/c++/10/vector:67,
from main.cpp:3:
/usr/include/c++/10/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]':
/usr/include/c++/10/bits/stl_vector.h:487:7: required from here
/usr/include/c++/10/bits/stl_vector.h:336:35: error: invalid use of incomplete type 'class std::tuple<int, int, int>'
336 | _M_impl._M_end_of_storage - _M_impl._M_start);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/bits/move.h:57,
from /usr/include/c++/10/bits/nested_exception.h:40,
from /usr/include/c++/10/exception:148,
from /usr/include/c++/10/ios:39,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/type_traits:2631:11: note: declaration of 'class std::tuple<int, int, int>'
2631 | class tuple;
| ^~~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/ostream:38,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !