Borderou de evaluare (job #2965769)

Utilizator user12345user user user user12345 Data 16 ianuarie 2023 07:40:40
Problema Flux maxim de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:85:5: error: 'bitset' does not name a type 85 | bitset<351> b; | ^~~~~~ main.cpp: In function 'bool bfs()': main.cpp:106:17: error: 'INT_MAX' was not declared in this scope 106 | H.add({src, INT_MAX, 0, 0}); | ^~~~~~~ main.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 3 | #include <vector> +++ |+#include <climits> 4 | using namespace std; main.cpp:106:31: error: cannot convert '<brace-enclosed initializer list>' to 'nod' 106 | H.add({src, INT_MAX, 0, 0}); | ^ main.cpp:57:26: note: initializing argument 1 of 'void heap<obj>::add(obj) [with obj = nod]' 57 | inline void add (obj val) { | ~~~~^~~ main.cpp:107:13: error: 'struct nod' has no member named 'b' 107 | H.top().b[src] = true; | ^ main.cpp:124:36: error: 'struct nod' has no member named 'b' 124 | if (!flow[x.x][i] || x.b[i] || | ^ main.cpp:129:92: error: 'struct nod' has no member named 'b' 129 | add = {i, min(x.flow, flow[x.x][i]), d[i], x.costSum + cost[x.x][i] + bound, x.b}; | ^ main.cpp:129:93: error: no match for 'operator=' (operand types are 'nod' and '<brace-enclosed initializer list>') 129 | add = {i, min(x.flow, flow[x.x][i]), d[i], x.costSum + cost[x.x][i] + bound, x.b}; | ^ main.cpp:81:8: note: candidate: 'constexpr nod& nod::operator=(const nod&)' 81 | struct nod { | ^~~ main.cpp:81:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const nod&' main.cpp:81:8: note: candidate: 'constexpr nod& nod::operator=(nod&&)' main.cpp:81:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'nod&&' main.cpp:130:17: error: 'struct nod' has no member named 'b' 130 | add.b[i] = true; | ^ main.cpp: In function 'int maxFlow()': main.cpp:140:18: warning: unused variable 'nr' [-Wunused-variable] 140 | int res = 0, nr = 0; | ^~ Non zero exit status: 1

Ceva nu functioneaza?