Borderou de evaluare (job #3148765)
Utilizator | Data | 4 septembrie 2023 03:08:42 | |
---|---|---|---|
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:1240:9: error: reference to 'list' is ambiguous
1240 | 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:1225:
/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:1235:8: note: 'struct list'
1235 | struct list {
| ^~~~
main.cpp:1242:1: error: 'plist' does not name a type; did you mean 'list'?
1242 | plist adj[MAXN], edge[MAXN]; int n, m, q[MAXN], sel[MAXN], src, sink;
| ^~~~~
| list
main.cpp:1245:6: error: variable or field 'alloc_edge' declared void
1245 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~~~~~~~~
main.cpp:1245:17: error: 'plist' was not declared in this scope; did you mean 'list'?
1245 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~~~
| list
main.cpp:1245:24: error: 'nou' was not declared in this scope
1245 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~
main.cpp:1245:29: error: 'plist' was not declared in this scope; did you mean 'list'?
1245 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~~~
| list
main.cpp:1245:41: error: expected primary-expression before 'int'
1245 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~
main.cpp:1245:48: error: expected primary-expression before 'int'
1245 | void alloc_edge(plist &nou, plist &dup, int i, int j)
| ^~~
main.cpp: In function 'void read_in()':
main.cpp:1258:5: error: 'plist' was not declared in this scope; did you mean 'list'?
1258 | plist nou, dup;
| ^~~~~
| list
main.cpp:1264:20: error: 'nou' was not declared in this scope
1264 | alloc_edge(nou, dup, x, y + n);
| ^~~
main.cpp:1264:9: error: 'alloc_edge' was not declared in this scope
1264 | alloc_edge(nou, dup, x, y + n);
| ^~~~~~~~~~
main.cpp:1265:40: error: request for member 'cap' in '* dup', which is of non-class type 'int(int) noexcept'
1265 | 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 !