Borderou de evaluare (job #3145744)

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

Raport evaluator

Compilare: main.cpp: In function 'int BellmanFord(int, int, int, int)': main.cpp:45:78: warning: array subscript has type 'char' [-Wchar-subscripts] 45 | if(watts[node] >= neighbour.cost && ((timp[neighbour.node] > timp[node] + neighbour.time && | ~~~~~~~~~~^~~~ main.cpp:46:111: warning: array subscript has type 'char' [-Wchar-subscripts] 46 | watts[node] - neighbour.cost >= watts[neighbour.node]) || | ~~~~~~~~~~^~~~ main.cpp:47:78: warning: array subscript has type 'char' [-Wchar-subscripts] 47 | (timp[neighbour.node] == timp[node] + neighbour.time && | ~~~~~~~~~~^~~~ main.cpp:48:110: warning: array subscript has type 'char' [-Wchar-subscripts] 48 | watts[node] - neighbour.cost > watts[neighbour.node]))){ | ~~~~~~~~~~^~~~ main.cpp:49:48: warning: array subscript has type 'char' [-Wchar-subscripts] 49 | timp[neighbour.node] = timp[node] + neighbour.time; | ~~~~~~~~~~^~~~ main.cpp:50:49: warning: array subscript has type 'char' [-Wchar-subscripts] 50 | watts[neighbour.node] = (friendly[neighbour.node]) ? w : (watts[node] - neighbour.cost); | ~~~~~~~~~~^~~~ main.cpp:50:77: warning: array subscript has type 'char' [-Wchar-subscripts] 50 | watts[neighbour.node] = (friendly[neighbour.node]) ? w : (watts[node] - neighbour.cost); | ~~~~~~~~~~^~~~ main.cpp:52:56: warning: array subscript has type 'char' [-Wchar-subscripts] 52 | if(!in_queue[neighbour.node]){ | ~~~~~~~~~~^~~~ main.cpp:53:60: warning: array subscript has type 'char' [-Wchar-subscripts] 53 | in_queue[neighbour.node] = true; | ~~~~~~~~~~^~~~ main.cpp: In function 'int main()': main.cpp:76:36: warning: narrowing conversion of 'b' from 'int' to 'char' [-Wnarrowing] 76 | edge[a].push_back({b, t, w}); | ^ main.cpp:76:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing] 76 | edge[a].push_back({b, t, w}); | ^ main.cpp:76:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing] 76 | edge[a].push_back({b, t, w}); | ^ main.cpp:77:36: warning: narrowing conversion of 'a' from 'int' to 'char' [-Wnarrowing] 77 | edge[b].push_back({a, t, w}); | ^ main.cpp:77:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing] 77 | edge[b].push_back({a, t, w}); | ^ main.cpp:77:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing] 77 | edge[b].push_back({a, t, w}); | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbIncorect0
30ms303kbIncorect0
40ms303kbIncorect0
50ms303kbOK10
60ms303kbIncorect0
70ms303kbIncorect0
80ms303kbOK10
90ms303kbIncorect0
100ms303kbIncorect0
Punctaj total30

Ceva nu functioneaza?