Borderou de evaluare (job #2525677)
Utilizator | Data | 17 ianuarie 2020 17:49:24 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:25:26: error: no type named 'value_type' in 'struct cmp'
priority_queue< int ,cmp > q;
^
main.cpp:25:26: error: template argument 3 is invalid
main.cpp: In function 'void dijkstra(int)':
main.cpp:30:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(start);
^~~~
main.cpp:33:15: error: request for member 'empty' in 'q', which is of non-class type 'int'
while (!q.empty())
^~~~~
main.cpp:36:16: error: request for member 'top' in 'q', which is of non-class type 'int'
vert=q.top();
^~~
main.cpp:37:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^~~
main.cpp:39:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<edge[vert].size();i++)
~^~~~~~~~~~~~~~~~~~
main.cpp:49:23: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(near);
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !