Borderou de evaluare (job #3336271)
| Utilizator | Data | 24 ianuarie 2026 14:52:51 | |
|---|---|---|---|
| Problema | Flux maxim | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:12:20: error: 'unordered_map' was not declared in this scope
12 | unordered_map<int, unordered_map<int, int> > capacity; // memorie O(E)
| ^~~~~~~~~~~~~
main.cpp:5:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
4 | #include <map>
+++ |+#include <unordered_map>
5 |
main.cpp:12:20: error: 'unordered_map' was not declared in this scope
12 | unordered_map<int, unordered_map<int, int> > capacity; // memorie O(E)
| ^~~~~~~~~~~~~
main.cpp:12:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:12:20: error: 'unordered_map' was not declared in this scope
main.cpp:12:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:12:20: error: 'unordered_map' was not declared in this scope
main.cpp:12:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:12:20: error: 'unordered_map' was not declared in this scope
main.cpp:12:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:12:20: error: 'unordered_map' was not declared in this scope
main.cpp:12:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:12:20: error: 'unordered_map' was not declared in this scope
main.cpp:12:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:12:20: error: 'unordered_map' was not declared in this scope
main.cpp:12:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:12:20: error: 'unordered_map' was not declared in this scope
main.cpp:12:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:12:1: error: 'unordered_map' does not name a type
12 | unordered_map<int, unordered_map<int, int> > capacity; // memorie O(E)
| ^~~~~~~~~~~~~
main.cpp: In function 'int dfs(const std::vector<int>*, std::vector<bool>&, int, int, int)':
main.cpp:18:28: error: 'capacity' was not declared in this scope
18 | if (!visited[v] && capacity[u][v] > 0) {
| ^~~~~~~~
main.cpp: In function 'int FordFulkerson(std::vector<int>*, int, int)':
main.cpp:35:50: error: 'INT_MAX' was not declared in this scope
35 | int flow = dfs(G, visited, source, sink, INT_MAX); // cauta un drum, la inceput presupunem ca putem transporta oricat
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <map>
+++ |+#include <climits>
5 |
main.cpp: In function 'int main()':
main.cpp:49:9: error: 'capacity' was not declared in this scope
49 | capacity[x][y] += c;
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
