Borderou de evaluare (job #3189026)

Utilizator arobyRobert Acsente aroby Data 4 ianuarie 2024 13:26:39
Problema Paznici 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:30:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 30 | for (int ind = 0; ind < graph[u].size(); ind++) { | ~~~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'int Graph::FordFulkerson(int, int)': main.cpp:50:29: error: 'INT_MAX' was not declared in this scope 50 | int path_flow = INT_MAX; | ^~~~~~~ main.cpp:8:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 7 | #include <fstream> +++ |+#include <climits> 8 | using namespace std; main.cpp: In function 'void dfs(int, std::map<int, bool>&, const std::map<int, std::vector<int> >&, std::vector<std::vector<int> >&, Graph&)': main.cpp:72:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 72 | for (int i = 0; i < adj.at(nod).size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:114:9: warning: unused variable 'ok' [-Wunused-variable] 114 | int ok = g.FordFulkerson(0, n + m + 1); | ^~ Non zero exit status: 1

Ceva nu functioneaza?