Borderou de evaluare (job #3182639)
Utilizator | Data | 9 decembrie 2023 11:19:58 | |
---|---|---|---|
Problema | Catun | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:1: error: expected ',' or ';' before 'vector'
13 | vector<long long>distances;
| ^~~~~~
main.cpp: In function 'void containerInit(const int&)':
main.cpp:26:5: error: 'distances' was not declared in this scope
26 | distances.resize(n);
| ^~~~~~~~~
main.cpp: In function 'void Dijkstra(const int&)':
main.cpp:32:10: error: 'distances' was not declared in this scope
32 | fill(distances.begin(), distances.end(),INT_MAX);
| ^~~~~~~~~
main.cpp:40:13: warning: unused variable 'currentCost' [-Wunused-variable]
40 | int currentCost=pq.top().first;
| ^~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !