Borderou de evaluare (job #3189209)

Utilizator LazarDanielGabrielLazar Daniel-Gabriel LazarDanielGabriel Data 4 ianuarie 2024 17:34:56
Problema Senat Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void initializeazaGraf()': main.cpp:70:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 70 | for (int j = 0; j < valoriInput[i].size(); ++j) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int executaBFS()': main.cpp:94:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 94 | for (int i = 0; i < listaAdiacenta[nodCurent].size(); ++i) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:140:33: error: 'INT_MAX' was not declared in this scope 140 | int fluxMinim = INT_MAX; | ^~~~~~~ main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 4 | #include <cstring> +++ |+#include <climits> 5 | using namespace std; Non zero exit status: 1

Ceva nu functioneaza?