Borderou de evaluare (job #2131804)

Utilizator NeredesinI am not real Neredesin Data 14 februarie 2018 23:01:28
Problema Sabotaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void addedge(int, int, int, int)’: user.cpp:36:30: warning: narrowing conversion of ‘g[y].std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >()’ from ‘std::vector<Edge>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] Edge direct = {y, g[y].size(), 0, cap, ind}; ^ user.cpp:37:31: warning: narrowing conversion of ‘g[x].std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >()’ from ‘std::vector<Edge>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] Edge inverse = {x, g[x].size(), 0, cap, ind}; ^ user.cpp: In function ‘bool bfs()’: user.cpp:54:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < g[from].size(); i++) { ^ user.cpp: In function ‘int dfs(int, int)’: user.cpp:70:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = rem[from]; i < g[from].size(); i++) { ^ user.cpp: In function ‘bool finalbfs(int)’: user.cpp:111:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < g[node].size(); i++) { ^ user.cpp:108:9: warning: unused variable ‘from’ [-Wunused-variable] int from = q.front(); ^ user.cpp: In function ‘int main()’: user.cpp:153:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < g[from].size(); i++) { ^ user.cpp:169:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j =0; j < g[i].size(); j++) { ^ user.cpp:179:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < sol.size(); i++) ^ user.cpp: In function ‘bool finalbfs(int)’: user.cpp:123:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1384kbIncorect. Cablurile taiate nu corespund timpului0
20ms1384kbRaspuns corect. Felicitari!10
30ms1384kbRaspuns corect. Felicitari!10
48ms1408kbIncorect. Cablurile taiate nu corespund timpului0
532ms1432kbIncorect. Cablurile taiate nu corespund timpului0
640ms1460kbIncorect. Cablurile taiate nu corespund timpului0
7248ms1496kbIncorect. Cablurile taiate nu corespund timpului0
8Depăşit1624kbTime limit exceeded.0
9192ms1500kbIncorect. Cablurile taiate nu corespund timpului0
10Depăşit1640kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?