Borderou de evaluare (job #2522492)
Utilizator | Data | 12 ianuarie 2020 16:53:01 | |
---|---|---|---|
Problema | Dragon Ball Z | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Dijkstra(int)':
main.cpp:47:33: error: 'make_pair' was not declared in this scope
PQ.push (make_pair (S, 0));
^
main.cpp:47:33: note: suggested alternative:
In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:497:5: note: 'std::make_pair'
make_pair(_T1&& __x, _T2&& __y)
^~~~~~~~~
main.cpp:56:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < G[node].size(); ++i) {
~~^~~~~~~~~~~~~~~~
main.cpp: In function 'void DFS(int, int, int)':
main.cpp:78:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < G[x].size(); ++i) {
~~^~~~~~~~~~~~~
main.cpp:80:68: error: 'min' was not declared in this scope
{ E[S] = min (E[S], D[x] + D[G[x][i].p] + G[x][i].c); }
^
main.cpp:80:68: note: suggested alternative:
In file included from /usr/include/c++/6/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from main.cpp:1:
/usr/include/c++/6/bits/stl_algo.h:3453:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^~~
main.cpp: In function 'int main()':
main.cpp:94:51: error: 'make_pair' was not declared in this scope
G[x].push_back (make_pair (y, cost));
^
main.cpp:94:51: note: suggested alternative:
In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:497:5: note: 'std::make_pair'
make_pair(_T1&& __x, _T2&& __y)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !