Borderou de evaluare (job #2702982)
Utilizator | Data | 6 februarie 2021 14:44:12 | |
---|---|---|---|
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:56:36: warning: narrowing conversion of 'b' from 'long long int' to 'int' inside { } [-Wnarrowing]
liste[a].push_back({ b ,c });
^
main.cpp:57:36: warning: narrowing conversion of 'a' from 'long long int' to 'int' inside { } [-Wnarrowing]
liste[b].push_back({ a ,c });
^
main.cpp:65:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < liste[top.el].size(); i++)
~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:79:13: error: 'dist' was not declared in this scope
if (dist[i] == 1ll << 62) {
^~~~
main.cpp:82:17: error: 'dist' was not declared in this scope
fout << dist[i] << ' ';
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !