Borderou de evaluare (job #3333706)
| Utilizator | Data | 14 ianuarie 2026 22:13:34 | |
|---|---|---|---|
| Problema | Algoritmul lui Dijkstra | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:31:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i=0; i<G[u].size(); i++)
| ~^~~~~~~~~~~~
main.cpp:33:17: error: 'intcost' was not declared in this scope
33 | intcost=G[u][i].first;
| ^~~~~~~
main.cpp:35:37: error: 'cost' was not declared in this scope; did you mean 'cosl'?
35 | if (dist[v]>dist[u]+cost)
| ^~~~
| cosl
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
