Pagini recente » Borderou de evaluare (job #3264045) | Borderou de evaluare (job #3283547) | Borderou de evaluare (job #3263641) | Borderou de evaluare (job #3259965) | Borderou de evaluare (job #2944441)
Borderou de evaluare (job #2944441)
Raport evaluator
Compilare:
main.cpp: In member function 'bool Flow::bfs(int, int)':
main.cpp:88:24: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
88 | for (auto &[son, cap, _] : g[node]) {
| ^
main.cpp:87:17: warning: unused variable 'ind' [-Wunused-variable]
87 | int ind = 0;
| ^~~
main.cpp: In member function 'int Flow::dfs(int, int, int)':
main.cpp:102:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Flow::Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
102 | for (; idx[node] < g[node].size(); idx[node]++) {
| ~~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp:103:19: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
103 | auto& [son, cap, ind] = g[node][idx[node]];
| ^
main.cpp: In member function 'int Flow::max_flow(int, int)':
main.cpp:124:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
124 | while(flow = dfs(src, dst)) {
| ~~~~~^~~~~~~~~~~~~~~
main.cpp: In function 'void solve(int)':
main.cpp:136:8: warning: unused variable 't1' [-Wunused-variable]
136 | ld t1 = clock();
| ^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 184kb | OK | 10 | 10 |
2 | 0ms | 184kb | OK | 10 | 10 |
3 | 0ms | 184kb | OK | 10 | 10 |
4 | 0ms | 184kb | OK | 10 | 10 |
5 | 0ms | 184kb | OK | 10 | 10 |
6 | 0ms | 184kb | OK | 10 | 10 |
7 | 0ms | 184kb | OK | 10 | 10 |
8 | 0ms | 184kb | OK | 10 | 30 |
9 | 0ms | 184kb | OK | 10 |
10 | 0ms | 184kb | OK | 10 |
Punctaj total | 100 |