Borderou de evaluare (job #2922559)
| Utilizator | Data | 8 septembrie 2022 21:35:51 | |
|---|---|---|---|
| Problema | BFS - Parcurgere in latime | 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:36:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (int i = 0; i < graf[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:40:34: error: 'distanta' was not declared in this scope
40 | if (distMin[vecin] > distanta + 1)
| ^~~~~~~~
main.cpp:34:13: warning: unused variable 'dist' [-Wunused-variable]
34 | int dist = q.front().second;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
