Borderou de evaluare (job #3336249)
| Utilizator | Data | 24 ianuarie 2026 14:17:52 | |
|---|---|---|---|
| Problema | Flux maxim | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:10:20: error: 'unordered_map' was not declared in this scope
10 | unordered_map<int, unordered_map<int, int> > capacity; // memorie O(E)
| ^~~~~~~~~~~~~
main.cpp:4:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
3 | #include <vector>
+++ |+#include <unordered_map>
4 | using namespace std;
main.cpp:10:20: error: 'unordered_map' was not declared in this scope
10 | unordered_map<int, unordered_map<int, int> > capacity; // memorie O(E)
| ^~~~~~~~~~~~~
main.cpp:10:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:10:20: error: 'unordered_map' was not declared in this scope
main.cpp:10:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:10:20: error: 'unordered_map' was not declared in this scope
main.cpp:10:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:10:20: error: 'unordered_map' was not declared in this scope
main.cpp:10:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:10:20: error: 'unordered_map' was not declared in this scope
main.cpp:10:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:10:20: error: 'unordered_map' was not declared in this scope
main.cpp:10:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:10:20: error: 'unordered_map' was not declared in this scope
main.cpp:10:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:10:20: error: 'unordered_map' was not declared in this scope
main.cpp:10:20: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
main.cpp:10:1: error: 'unordered_map' does not name a type
10 | 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:16:28: error: 'capacity' was not declared in this scope
16 | if (!visited[v] && capacity[u][v] > 0) {
| ^~~~~~~~
main.cpp: In function 'int FordFulkerson(std::vector<int>*, int, int)':
main.cpp:33:50: error: 'INT_MAX' was not declared in this scope
33 | int flow = dfs(G, visited, source, sink, INT_MAX); // cauta un drum, la inceput presupunem ca putem transporta oricat
| ^~~~~~~
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: In function 'int main()':
main.cpp:47:9: error: 'capacity' was not declared in this scope
47 | 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 !
