Borderou de evaluare (job #2954828)
Utilizator | Data | 15 decembrie 2022 16:25:24 | |
---|---|---|---|
Problema | Flux maxim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:23:11: error: conflicting declaration 'int flow'
23 | int n, m, flow;
| ^~~~
main.cpp:20:5: note: previous declaration as 'int flow [1024][1024]'
20 | int flow[NMAX][NMAX];
| ^~~~
main.cpp: In function 'int BF()':
main.cpp:39:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for (j = 0; j < l[nod].sz; j++)
| ^
main.cpp: In function 'int main()':
main.cpp:72:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
72 | while (bottleneck = BF()) {
| ~~~~~~~~~~~^~~~~~
main.cpp:85:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int (*)[1024]' [-Wformat=]
85 | printf("%d ", flow);
| ~^ ~~~~
| | |
| int int (*)[1024]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !