Borderou de evaluare (job #3336292)

Utilizator Robi27Baciu Roberto Robi27 Data 24 ianuarie 2026 15:25:31
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:20: error: 'unordered_map' was not declared in this scope 14 | unordered_map<int, unordered_map<int, int> > capacity, flow; // memorie O(E) | ^~~~~~~~~~~~~ main.cpp:7:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? 6 | #include <map> +++ |+#include <unordered_map> 7 | main.cpp:14:20: error: 'unordered_map' was not declared in this scope 14 | unordered_map<int, unordered_map<int, int> > capacity, flow; // memorie O(E) | ^~~~~~~~~~~~~ main.cpp:14:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? main.cpp:14:20: error: 'unordered_map' was not declared in this scope main.cpp:14:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? main.cpp:14:20: error: 'unordered_map' was not declared in this scope main.cpp:14:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? main.cpp:14:20: error: 'unordered_map' was not declared in this scope main.cpp:14:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? main.cpp:14:20: error: 'unordered_map' was not declared in this scope main.cpp:14:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? main.cpp:14:20: error: 'unordered_map' was not declared in this scope main.cpp:14:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? main.cpp:14:20: error: 'unordered_map' was not declared in this scope main.cpp:14:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? main.cpp:14:20: error: 'unordered_map' was not declared in this scope main.cpp:14:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? main.cpp:14:1: error: 'unordered_map' does not name a type 14 | unordered_map<int, unordered_map<int, int> > capacity, flow; // memorie O(E) | ^~~~~~~~~~~~~ main.cpp: In function 'bool bfs(int, int, std::vector<int>&, std::vector<bool>&)': main.cpp:18:5: error: 'queue' was not declared in this scope 18 | queue<int> q; | ^~~~~ main.cpp:7:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'? 6 | #include <map> +++ |+#include <queue> 7 | main.cpp:18:11: error: expected primary-expression before 'int' 18 | queue<int> q; | ^~~ main.cpp:19:5: error: 'q' was not declared in this scope 19 | q.push(source); | ^ main.cpp:27:32: error: 'capacity' was not declared in this scope 27 | if (!visited[v] && capacity[u][v] - flow[u][v] > 0) { | ^~~~~~~~ main.cpp:27:49: error: 'flow' was not declared in this scope 27 | if (!visited[v] && capacity[u][v] - flow[u][v] > 0) { | ^~~~ main.cpp: In function 'int EdmondsKarp(int, int)': main.cpp:46:17: error: 'capacity' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?