Borderou de evaluare (job #3176017)
Utilizator | Data | 26 noiembrie 2023 17:11:55 | |
---|---|---|---|
Problema | Camionas | 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::camionas(int)':
main.cpp:25:46: error: 'INT_MAX' was not declared in this scope
25 | vector<int> rezistente(nrNoduri + 1, INT_MAX);
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <fstream>
+++ |+#include <climits>
5 |
main.cpp:33:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for (int i=0; i<adj[nodCurent].size(); i++) {
| ~^~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !