Borderou de evaluare (job #2402423)
Utilizator | Data | 10 aprilie 2019 18:03:28 | |
---|---|---|---|
Problema | Desen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dijkstra(int)':
main.cpp:36:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<graf[x].size();i++)
~^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:63:13: error: 'a' was not declared in this scope
a[j].push_back(make_pair(pred[j],dist(j,pred[j])));
^
main.cpp:63:60: error: 'dist' was not declared in this scope
a[j].push_back(make_pair(pred[j],dist(j,pred[j])));
^
main.cpp:71:12: error: 'a' was not declared in this scope
a[i].push_back(j,dist(i,j));
^
main.cpp:71:37: error: 'dist' was not declared in this scope
a[i].push_back(j,dist(i,j));
^
main.cpp:76:18: error: too few arguments to function 'void dijkstra(int)'
dijkstra();
^
main.cpp:19:6: note: declared here
void dijkstra(int start)
^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !