Pagini recente » Borderou de evaluare (job #3223916) | Borderou de evaluare (job #62786) | Borderou de evaluare (job #1385749) | Borderou de evaluare (job #2750513) | Borderou de evaluare (job #2944439)
Borderou de evaluare (job #2944439)
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:153:20: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
153 | for (auto& [j, cap, _] : flow.g[i]) {
| ^
main.cpp:137:8: warning: unused variable 't1' [-Wunused-variable]
137 | ld t1 = clock();
| ^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 184kb | OK | 10 |
2 | 0ms | 184kb | OK | 10 |
3 | 0ms | 184kb | OK | 10 |
4 | 0ms | 184kb | OK | 10 |
5 | 1ms | 184kb | OK | 10 |
6 | 7ms | 2150kb | OK | 10 |
7 | 34ms | 4440kb | OK | 10 |
8 | 42ms | 3493kb | OK | 10 |
9 | 73ms | 6086kb | OK | 10 |
10 | 172ms | 12054kb | OK | 10 |
Punctaj total | 100 |