Pagini recente » Borderou de evaluare (job #211591) | Borderou de evaluare (job #2750445) | Borderou de evaluare (job #2220250) | Borderou de evaluare (job #2710725) | Borderou de evaluare (job #2585335)
Borderou de evaluare (job #2585335)
Raport evaluator
Compilare:
main.cpp: In member function 'void maxFlow::addEdge(int, int, int)':
main.cpp:27:46: warning: narrowing conversion of '(&((maxFlow*)this)->maxFlow::g.std::vector<_Tp, _Alloc>::operator[]<std::vector<Edge>, std::allocator<std::vector<Edge> > >(((std::vector<std::vector<Edge> >::size_type)to)))->std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >()' from 'std::vector<Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
g[from].push_back({to, 0, cap, g[to].size()});
~~~~~~~~~~^~
main.cpp:28:49: warning: narrowing conversion of '((&((maxFlow*)this)->maxFlow::g.std::vector<_Tp, _Alloc>::operator[]<std::vector<Edge>, std::allocator<std::vector<Edge> > >(((std::vector<std::vector<Edge> >::size_type)from)))->std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >() - 1ul)' from 'std::vector<Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
g[to].push_back({from, 0, 0, g[from].size() - 1});
~~~~~~~~~~~~~~~^~~
main.cpp: In member function 'bool maxFlow::bfs()':
main.cpp:39:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int h = 0; h < g[node].size(); h++){
~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'int maxFlow::dfs(int, int)':
main.cpp:53:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int &h = rem[node]; h < g[node].size(); h++){
~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:83:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("negot.in", "r", stdin);
^
main.cpp:84:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("negot.out", "w", stdout);
^
main.cpp:87:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &m, &n, &k);
^
main.cpp:91:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
main.cpp:95:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 5 | 10 |
2 | 2ms | 131kb | OK | 5 |
3 | 2ms | 131kb | OK | 5 | 10 |
4 | 2ms | 131kb | OK | 5 |
5 | 10ms | 393kb | OK | 5 | 20 |
6 | 6ms | 393kb | OK | 5 |
7 | 14ms | 786kb | OK | 5 |
8 | 5ms | 393kb | OK | 5 |
9 | 11ms | 786kb | OK | 5 | 30 |
10 | 4ms | 262kb | OK | 5 |
11 | 4ms | 262kb | OK | 5 |
12 | 3ms | 262kb | OK | 5 |
13 | 7ms | 393kb | OK | 5 |
14 | 6ms | 393kb | OK | 5 |
15 | 26ms | 3923kb | OK | 5 | 30 |
16 | 218ms | 12709kb | OK | 5 |
17 | 38ms | 4186kb | OK | 5 |
18 | 42ms | 4186kb | OK | 5 |
19 | 26ms | 3792kb | OK | 5 |
20 | 37ms | 3923kb | OK | 5 |
Punctaj total | 100 |