Borderou de evaluare (job #2918732)
Utilizator | Data | 12 august 2022 18:30:43 | |
---|---|---|---|
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 'void dijkstra(int)':
main.cpp:40:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for (i = 0; i < graph[x].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:80:15: error: 'j' was not declared in this scope
80 | if (d[j] == -1){
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !