Borderou de evaluare (job #3310173)
| Utilizator | Data | 12 septembrie 2025 00:20:50 | |
|---|---|---|---|
| Problema | Terenuri3D | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:5:15: error: 'Edge' was not declared in this scope
5 | vector<vector<Edge>> graph(MAXN);
| ^~~~
main.cpp:5:15: error: template argument 1 is invalid
main.cpp:5:15: error: template argument 2 is invalid
main.cpp:5:19: error: template argument 1 is invalid
5 | vector<vector<Edge>> graph(MAXN);
| ^~
main.cpp:5:19: error: template argument 2 is invalid
main.cpp: In function 'void add_edge(int, int, int, int)':
main.cpp:16:29: error: invalid types 'int[int]' for array subscript
16 | Edge e1 = {v, (int)graph[v].size(), cap, cost};
| ^
main.cpp:17:29: error: invalid types 'int[int]' for array subscript
17 | Edge e2 = {u, (int)graph[u].size(), 0, -cost};
| ^
main.cpp:18:10: error: invalid types 'int[int]' for array subscript
18 | graph[u].push_back(e1);
| ^
main.cpp:19:10: error: invalid types 'int[int]' for array subscript
19 | graph[v].push_back(e2);
| ^
main.cpp: In function 'void min_cost_max_flow(int, int, int)':
main.cpp:31:32: error: 'INF' was not declared in this scope
31 | vector<int> dist(MAXN, INF);
| ^~~
main.cpp:39:13: error: 'in' was not declared in this scope; did you mean 'yn'?
39 | in
| ^~
| yn
main.cpp:41:41: error: invalid types 'int[std::tuple_element<1, std::pair<int, int> >::type {aka int}]' for array subscript
41 | for (size_t i = 0; i < graph[u].size(); ++i) {
| ^
main.cpp:42:32: error: invalid types 'int[std::tuple_element<1, std::pair<int, int> >::type {aka int}]' for array subscript
42 | Edge &e = graph[u][i];
| ^
main.cpp:68:45: error: invalid types 'int[std::tuple_element<1, std::pair<int, int> >::type {aka int}]' for array subscript
68 | for (size_t i = 0; i < graph[u].size(); ++i) {
| ^
main.cpp:69:36: error: invalid types 'int[std::tuple_element<1, std::pair<int, int> >::type {aka int}]' for array subscript
69 | Edge &e = graph[u][i];
| ^
main.cpp:82:32: error: invalid types 'int[int]' for array subscript
82 | Edge &e = graph[parent[v].first][parent[v].second];
| ^
main.cpp:91:32: error: invalid types 'int[int]' for array subscript
91 | Edge &e = graph[parent[v].first][parent[v].second];
| ^
main.cpp:93:34: error: invalid types 'int[int]' for array subscript
93 | Edge &rev = graph[e.to][e.rev];
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
