Borderou de evaluare (job #3161512)
Utilizator | Data | 27 octombrie 2023 13:01:01 | |
---|---|---|---|
Problema | Patrol2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'int graf::solve() const':
main.cpp:22:28: error: 'INT_MAX' was not declared in this scope
22 | nod[min] = INT_MAX;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <iostream>
+++ |+#include <climits>
5 |
main.cpp:25:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(int i = 0; i < patrule.size(); i++){
| ~~^~~~~~~~~~~~~~~~
main.cpp:61:24: error: 'INT_MAX' was not declared in this scope
61 | int rezultat = INT_MAX;
| ^~~~~~~
main.cpp:61:24: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:69:5: warning: control reaches end of non-void function [-Wreturn-type]
69 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !