Borderou de evaluare (job #3185835)

Utilizator arobyRobert Acsente aroby Data 20 decembrie 2023 16:34:29
Problema Senat Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'bool Graph::BFS(int, int, std::vector<int>&)': main.cpp:26:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 26 | for (int ind = 0; ind < graph[u].size(); ind++) { | ~~~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::pair<int, std::vector<int> > Graph::FordFulkerson(int, int)': main.cpp:46:29: error: 'INT_MAX' was not declared in this scope 46 | int path_flow = INT_MAX; | ^~~~~~~ main.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 3 | #include <queue> +++ |+#include <climits> 4 | using namespace std; main.cpp: In function 'int main()': main.cpp:92:9: warning: unused variable 'ok' [-Wunused-variable] 92 | int ok, parent; | ^~ main.cpp:92:13: warning: unused variable 'parent' [-Wunused-variable] 92 | int ok, parent; | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?