Pagini recente » Borderou de evaluare (job #721982) | Borderou de evaluare (job #2855980) | Borderou de evaluare (job #735183) | Borderou de evaluare (job #259432) | Borderou de evaluare (job #2270065)
Borderou de evaluare (job #2270065)
Raport evaluator
Compilare:
main.cpp: In function 'int bfs()':
main.cpp:33:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < g[from].size(); ++ k) {
~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int dfs(int, int)':
main.cpp:59:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = rem[from]; k < g[from].size(); ++ k) {
~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:108:45: warning: narrowing conversion of 'g[j].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >()' from 'std::vector<Muchie>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
g[i].push_back({j, g[j].size(), cap[i][j], 0});
~~~~~~~~~^~
main.cpp:109:48: warning: narrowing conversion of '(g[i].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >() - 1ul)' from 'std::vector<Muchie>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
g[j].push_back({i, g[i].size() - 1, cap[j][i], 0});
~~~~~~~~~~~~^~~
main.cpp:92:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("maxflow.in", "r", stdin);
^
main.cpp:93:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("maxflow.out", "w", stdout);
^
main.cpp:95:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:101:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &x, &y, &c);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 262kb | OK | 10 | 10 |
3 | 3ms | 393kb | OK | 10 | 10 |
4 | 3ms | 393kb | OK | 10 | 10 |
5 | 3ms | 524kb | OK | 10 | 10 |
6 | 4ms | 655kb | OK | 10 | 10 |
7 | 10ms | 1835kb | OK | 10 | 10 |
8 | 18ms | 3145kb | OK | 10 | 30 |
9 | 26ms | 3932kb | OK | 10 |
10 | 34ms | 4456kb | OK | 10 |
Punctaj total | 100 |