Borderou de evaluare (job #2878031)
Utilizator | Data | 25 martie 2022 18:30:31 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool bellmanford(int)':
main.cpp:39:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for (int i = 0; i < graf[nodcurent].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:40:32: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
40 | int vecin = graf[nodcurent].first;
| ^~~~~
main.cpp:41:31: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
41 | int cost = graf[nodcurent].second;
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !