Borderou de evaluare (job #3260451)
Utilizator | Data | 2 decembrie 2024 15:22:41 | |
---|---|---|---|
Problema | Flux maxim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void addEdge(int, int, int)':
main.cpp:24:41: warning: narrowing conversion of 'graph[v].std::vector<Edge>::size()' from 'std::vector<Edge>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
24 | graph[u].push_back({v, graph[v].size(), cap, 0}); // Forward edge
| ~~~~~~~~~~~~~^~
main.cpp:25:44: warning: narrowing conversion of '(graph[u].std::vector<Edge>::size() - 1)' from 'std::vector<Edge>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing]
25 | graph[v].push_back({u, graph[u].size() - 1, 0, 0}); // Reverse edge (initial flow 0)
| ~~~~~~~~~~~~~~~~^~~
main.cpp: In function 'int dfs(int, int, int)':
main.cpp:55:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for (; ptr[u] < graph[u].size(); ptr[u]++) {
| ~~~~~~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int dinic(int, int, int)':
main.cpp:10:13: error: 'INT_MAX' was not declared in this scope
10 | #define INF INT_MAX
| ^~~~~~~
main.cpp:82:42: note: in expansion of macro 'INF'
82 | while ((flow = dfs(source, sink, INF)) > 0) { // Push as much flow as possible
| ^~~
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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !