Pagini recente » Borderou de evaluare (job #2891136) | Borderou de evaluare (job #91164) | Borderou de evaluare (job #744363) | Borderou de evaluare (job #2898578) | Borderou de evaluare (job #3145769)
Borderou de evaluare (job #3145769)
Raport evaluator
Compilare:
main.cpp: In function 'int BellmanFord(int, int, int, int)':
main.cpp:40:17: warning: narrowing conversion of 'start' from 'int' to 'char' [-Wnarrowing]
40 | q.push({start, w});
| ^~~~~
main.cpp:40:24: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing]
40 | q.push({start, w});
| ^
main.cpp:59:63: warning: array subscript has type 'char' [-Wchar-subscripts]
59 | if(min_time[neighbour.node][watts - neighbour.cost] > min_time[node][watts] + neighbour.cost){
| ~~~~~~~~~~^~~~
main.cpp:60:68: warning: array subscript has type 'char' [-Wchar-subscripts]
60 | min_time[neighbour.node][watts - neighbour.cost] = min_time[node][watts] + neighbour.time;
| ~~~~~~~~~~^~~~
main.cpp:61:72: warning: array subscript has type 'char' [-Wchar-subscripts]
61 | if(!in_queue[neighbour.node]){
| ~~~~~~~~~~^~~~
main.cpp:62:76: warning: array subscript has type 'char' [-Wchar-subscripts]
62 | in_queue[neighbour.node] = true;
| ~~~~~~~~~~^~~~
main.cpp:63:87: warning: narrowing conversion of '(watts - ((int)neighbour.Edge::cost))' from 'int' to 'short int' [-Wnarrowing]
63 | q.push({neighbour.node, watts - neighbour.cost});
| ~~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:92:36: warning: narrowing conversion of 'b' from 'int' to 'char' [-Wnarrowing]
92 | edge[a].push_back({b, t, w});
| ^
main.cpp:92:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing]
92 | edge[a].push_back({b, t, w});
| ^
main.cpp:92:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing]
92 | edge[a].push_back({b, t, w});
| ^
main.cpp:93:36: warning: narrowing conversion of 'a' from 'int' to 'char' [-Wnarrowing]
93 | edge[b].push_back({a, t, w});
| ^
main.cpp:93:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing]
93 | edge[b].push_back({a, t, w});
| ^
main.cpp:93:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing]
93 | edge[b].push_back({a, t, w});
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK | 10 |
2 | 0ms | 303kb | Incorect | 0 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 0ms | 303kb | OK | 10 |
5 | 0ms | 303kb | OK | 10 |
6 | 0ms | 303kb | Incorect | 0 |
7 | 0ms | 303kb | Incorect | 0 |
8 | 0ms | 303kb | Incorect | 0 |
9 | 0ms | 303kb | OK | 10 |
10 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 40 |