Borderou de evaluare (job #3310169)
| Utilizator | Data | 12 septembrie 2025 00:17:08 | |
|---|---|---|---|
| Problema | Terenuri3D | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void min_cost_max_flow(int, int, int)':
main.cpp:37:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
37 | if (in_queue[u]) continue; in_queue[u] = true;
| ^~
main.cpp:37:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
37 | if (in_queue[u]) continue; in_queue[u] = true;
| ^~~~~~~~
main.cpp:38:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (int i = 0; i < graph[u].size(); ++i) {
| ~~^~~~~~~~~~~~~~~~~
main.cpp:62:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
62 | if (dist[u] < d) continue; in_queue[u] = true;
| ^~
main.cpp:62:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
62 | if (dist[u] < d) continue; in_queue[u] = true;
| ^~~~~~~~
main.cpp:63:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int i = 0; i < graph[u].size(); ++i) {
| ~~^~~~~~~~~~~~~~~~~
main.cpp:69:42: error: cannot convert '<brace-enclosed initializer list>' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} in assignment
69 | parent[v] = {u, i};
| ^
main.cpp:76:51: error: request for member 'first' in 'parent.std::vector<int>::operator[](((std::vector<int>::size_type)v))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
76 | for (int v = t; v != s; v = parent[v].first) {
| ^~~~~
main.cpp:77:43: error: request for member 'first' in 'parent.std::vector<int>::operator[](((std::vector<int>::size_type)v))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
77 | Edge &e = graph[parent[v].first][parent[v].second];
| ^~~~~
main.cpp:77:60: error: request for member 'second' in 'parent.std::vector<int>::operator[](((std::vector<int>::size_type)v))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
77 | Edge &e = graph[parent[v].first][parent[v].second];
| ^~~~~~
main.cpp:85:51: error: request for member 'first' in 'parent.std::vector<int>::operator[](((std::vector<int>::size_type)v))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
85 | for (int v = t; v != s; v = parent[v].first) {
| ^~~~~
main.cpp:86:43: error: request for member 'first' in 'parent.std::vector<int>::operator[](((std::vector<int>::size_type)v))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
86 | Edge &e = graph[parent[v].first][parent[v].second];
| ^~~~~
main.cpp:86:60: error: request for member 'second' in 'parent.std::vector<int>::operator[](((std::vector<int>::size_type)v))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
86 | Edge &e = graph[parent[v].first][parent[v].second];
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:131:22: error: 'z' was not declared in this scope
131 | G += z; // Wait â how do we get the original value? We need to track it during input.
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
