Borderou de evaluare (job #3278578)
Utilizator | Data | 20 februarie 2025 10:40:25 | |
---|---|---|---|
Problema | Cuplaj maxim in graf bipartit | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:9: error: reference to 'list' is ambiguous
16 | typedef list* plist;
| ^~~~
In file included from /usr/include/c++/12.2.1/list:63,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:79,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_list.h:632:11: note: candidates are: 'template<class _Tp, class _Alloc> class std::__cxx11::list'
632 | class list : protected _List_base<_Tp, _Alloc>
| ^~~~
main.cpp:11:8: note: 'struct list'
11 | struct list {
| ^~~~
main.cpp:18:1: error: 'plist' does not name a type; did you mean 'list'?
18 | plist adj[MAXN], edge[MAXN]; int n, m, q[MAXN], sel[MAXN], src, sink;
| ^~~~~
| list
main.cpp:21:6: error: variable or field 'alloc_edge' declared void
21 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~~~~~~~~
main.cpp:21:17: error: 'plist' was not declared in this scope; did you mean 'list'?
21 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~~~
| list
main.cpp:21:24: error: 'nou' was not declared in this scope
21 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~
main.cpp:21:29: error: 'plist' was not declared in this scope; did you mean 'list'?
21 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~~~
| list
main.cpp:21:41: error: expected primary-expression before 'int'
21 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~
main.cpp:21:48: error: expected primary-expression before 'int'
21 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~
main.cpp: In function 'void read_in()':
main.cpp:34:5: error: 'plist' was not declared in this scope; did you mean 'list'?
34 | plist nou, dup;
| ^~~~~
| list
main.cpp:40:20: error: 'nou' was not declared in this scope
40 | alloc_edge(nou, dup, x, y + n);
| ^~~
main.cpp:40:9: error: 'alloc_edge' was not declared in this scope
40 | alloc_edge(nou, dup, x, y + n);
| ^~~~~~~~~~
main.cpp:41:40: error: request for member 'cap' in '* dup', which is of non-class type 'int(int) noexcept'
41 | nou->cap = 1, nou->flow = dup->cap = dup->flow = 0;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !