Borderou de evaluare (job #3145766)

Utilizator daristyleBejan Darius-Ramon daristyle Data 16 august 2023 23:07:21
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'int BellmanFord(int, int, int, int)': main.cpp:39:17: warning: narrowing conversion of 'start' from 'int' to 'char' [-Wnarrowing] 39 | q.push({start, w}); | ^~~~~ main.cpp:39:24: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing] 39 | q.push({start, w}); | ^ main.cpp:54:55: warning: array subscript has type 'char' [-Wchar-subscripts] 54 | if(min_time[neighbour.node][watts - neighbour.cost] > min_time[node][watts] + neighbour.cost){ | ~~~~~~~~~~^~~~ main.cpp:55:60: warning: array subscript has type 'char' [-Wchar-subscripts] 55 | min_time[neighbour.node][watts - neighbour.cost] = min_time[node][watts] + neighbour.time; | ~~~~~~~~~~^~~~ main.cpp:56:71: warning: narrowing conversion of '(watts - ((int)neighbour.Edge::cost))' from 'int' to 'short int' [-Wnarrowing] 56 | q.push({neighbour.node, watts - neighbour.cost}); | ~~~~~~^~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:83:36: warning: narrowing conversion of 'b' from 'int' to 'char' [-Wnarrowing] 83 | edge[a].push_back({b, t, w}); | ^ main.cpp:83:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing] 83 | edge[a].push_back({b, t, w}); | ^ main.cpp:83:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing] 83 | edge[a].push_back({b, t, w}); | ^ main.cpp:84:36: warning: narrowing conversion of 'a' from 'int' to 'char' [-Wnarrowing] 84 | edge[b].push_back({a, t, w}); | ^ main.cpp:84:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing] 84 | edge[b].push_back({a, t, w}); | ^ main.cpp:84:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing] 84 | edge[b].push_back({a, t, w}); | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
23ms557kbOK10
30ms303kbIncorect0
453ms880kbTime limit exceeded0
59ms303kbOK10
68ms557kbIncorect0
754ms557kbTime limit exceeded0
854ms24174kbTime limit exceeded0
90ms303kbOK10
1054ms6443kbTime limit exceeded0
Punctaj total40

Ceva nu functioneaza?