Borderou de evaluare (job #2313574)
| Utilizator | Data | 7 ianuarie 2019 09:33:01 | |
|---|---|---|---|
| Problema | Algoritmul lui Dijkstra | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:17:33: error: type/value mismatch at argument 3 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
priority_queue<PII,vector<PII>,C> q;
^
main.cpp:17:33: note: expected a type, got 'C'
main.cpp: In function 'int main()':
main.cpp:25:8: error: request for member 'push' in 'q', which is of non-class type 'int'
for(q.push(make_pair(1,0));!q.empty();)
^~~~
main.cpp:25:32: error: request for member 'empty' in 'q', which is of non-class type 'int'
for(q.push(make_pair(1,0));!q.empty();)
^~~~~
main.cpp:27:7: error: request for member 'top' in 'q', which is of non-class type 'int'
x=q.top().first,q.pop();
^~~
main.cpp:27:21: error: request for member 'pop' in 'q', which is of non-class type 'int'
x=q.top().first,q.pop();
^~~
main.cpp:31:45: error: request for member 'push' in 'q', which is of non-class type 'int'
d[h[x][j].first]=d[x]+h[x][j].second,q.push(make_pair(h[x][j].first,d[h[x][j].first]));
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
