Borderou de evaluare (job #3357161)
| Utilizator | Data | 6 iunie 2026 18:10:05 | |
|---|---|---|---|
| Problema | Critice | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int dfs_dinic(int, int, int)':
main.cpp:50:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for (int& cid = next_edge[u]; cid < adj[u].size(); ++cid) {
| ~~~~^~~~~~~~~~~~~~~
main.cpp: In function 'void dinic(int, int)':
main.cpp:73:20: warning: unused variable 'pushed' [-Wunused-variable]
73 | while (int pushed = dfs_dinic(source, sink, 2e9)) {
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:154:23: error: no match for 'operator&&' (operand types are 'std::vector<bool>::reference' and 'std::vector<bool>')
154 | if ((vis_S[u] && vis_T
| ~~~~~~~~ ^~ ~~~~~
| | |
| | std::vector<bool>
| std::vector<bool>::reference
main.cpp:154:23: note: candidate: 'operator&&(bool, bool)' (built-in)
154 | if ((vis_S[u] && vis_T
| ~~~~~~~~~^~~~~~~~
main.cpp:154:23: note: no known conversion for argument 2 from 'std::vector<bool>' to 'bool'
main.cpp:154:31: error: expected ')' at end of input
154 | if ((vis_S[u] && vis_T
| ~ ^
| )
main.cpp:154:31: error: expected ')' at end of input
154 | if ((vis_S[u] && vis_T
| ~ ^
| )
main.cpp:154:31: error: expected statement at end of input
main.cpp:154:31: error: expected '}' at end of input
main.cpp:150:34: note: to match this '{'
150 | for (int i = 1; i <= M; ++i) {
| ^
main.cpp:152:13: warning: unused variable 'v' [-Wunused-variable]
152 | int v = original_edges[i].second;
| ^
main.cpp:154:31: error: expected '}' at end of input
154 | if ((vis_S[u] && vis_T
| ^
main.cpp:121:12: note: to match this '{'
121 | int main() {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
