Borderou de evaluare (job #3165383)
Utilizator | Data | 6 noiembrie 2023 08:27:51 | |
---|---|---|---|
Problema | Patrol2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void bfs(int, int)':
main.cpp:26:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int i = 0; i < adiacenta[nod_curent].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:51:51: error: 'INT_MAX' was not declared in this scope
51 | int nr_noduri, nr_muchii, nr_patrule, minim = INT_MAX, x , y, nr_noduri_patrulate , l;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <queue>
+++ |+#include <climits>
5 | using namespace std;
main.cpp:56:14: error: 'x' was not declared in this scope
56 | f >> x >> y;
| ^
main.cpp:56:19: error: 'y' was not declared in this scope
56 | f >> x >> y;
| ^
main.cpp:63:10: error: 'nr_noduri_patrulate' was not declared in this scope
63 | f >> nr_noduri_patrulate;
| ^~~~~~~~~~~~~~~~~~~
main.cpp:66:14: error: 'l' was not declared in this scope
66 | f >> l;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !