Borderou de evaluare (job #3258175)
| Utilizator | Data | 21 noiembrie 2024 13:55:15 | |
|---|---|---|---|
| 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:46: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]
46 | for(int j=0; j<=graph[nod].size(); j++)
| ~^~~~~~~~~~~~~~~~~~~
main.cpp:49:34: error: expression cannot be used as a function
49 | x=graph[nod][j].first();
| ~~~~~~~~~~~~~~~~~~~^~
main.cpp:50:35: error: expression cannot be used as a function
50 | y=graph[nod][j].second();
| ~~~~~~~~~~~~~~~~~~~~^~
main.cpp:51:21: error: expected primary-expression before ']' token
51 | if(!viz[] && d[nod]+graph[nod][j].second()<d[j])
| ^
main.cpp:51:53: error: expression cannot be used as a function
51 | if(!viz[] && d[nod]+graph[nod][j].second()<d[j])
| ~~~~~~~~~~~~~~~~~~~~^~
main.cpp:53:49: error: expression cannot be used as a function
53 | d[j]=d[nod]+graph[nod][j].second();
| ~~~~~~~~~~~~~~~~~~~~^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
