Pagini recente » Borderou de evaluare (job #244712) | Borderou de evaluare (job #2072713) | Borderou de evaluare (job #703641) | Borderou de evaluare (job #945439) | Borderou de evaluare (job #2025041)
Borderou de evaluare (job #2025041)
Raport evaluator
Compilare:
user.cpp: In function ‘void addedge(int, int, int, double)’:
user.cpp:43:32: 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, cost};
^
user.cpp:44:32: 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, 0, -cost};
^
user.cpp: In function ‘void bellmanford()’:
user.cpp:61:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[from].size(); i++) {
^
user.cpp: In function ‘void dijkstra()’:
user.cpp:81:28: warning: narrowing conversion of ‘distdij[src]’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
pq.push({src, distdij[src]});
^
user.cpp:91:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[from].size(); i++) {
^
user.cpp:102:38: warning: narrowing conversion of ‘distdij[to]’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
pq.push({to, distdij[to]});
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 544kb | Mai calculeaza odata ! | 0 |
2 | 4ms | 664kb | Mai calculeaza odata ! | 0 |
3 | 28ms | 1048kb | Mai calculeaza odata ! | 0 |
4 | 80ms | 2104kb | Mai calculeaza odata ! | 0 |
5 | 144ms | 2632kb | Mai calculeaza odata ! | 0 |
6 | 204ms | 2896kb | Mai calculeaza odata ! | 0 |
7 | 240ms | 2896kb | Mai calculeaza odata ! | 0 |
8 | 316ms | 3312kb | Mai calculeaza odata ! | 0 |
9 | 336ms | 3424kb | Mai calculeaza odata ! | 0 |
10 | 404ms | 3424kb | Mai calculeaza odata ! | 0 |
Punctaj total | 0 |