Pagini recente » Borderou de evaluare (job #2722694) | Cod sursa (job #2908618) | Borderou de evaluare (job #380766) | Borderou de evaluare (job #1332843) | Borderou de evaluare (job #3145767)
Borderou de evaluare (job #3145767)
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:56:55: warning: array subscript has type 'char' [-Wchar-subscripts]
56 | if(min_time[neighbour.node][watts - neighbour.cost] > min_time[node][watts] + neighbour.cost){
| ~~~~~~~~~~^~~~
main.cpp:57:60: warning: array subscript has type 'char' [-Wchar-subscripts]
57 | min_time[neighbour.node][watts - neighbour.cost] = min_time[node][watts] + neighbour.time;
| ~~~~~~~~~~^~~~
main.cpp:58:64: warning: array subscript has type 'char' [-Wchar-subscripts]
58 | if(!in_queue[neighbour.node]){
| ~~~~~~~~~~^~~~
main.cpp:59:68: warning: array subscript has type 'char' [-Wchar-subscripts]
59 | in_queue[neighbour.node] = true;
| ~~~~~~~~~~^~~~
main.cpp:60:79: warning: narrowing conversion of '(watts - ((int)neighbour.Edge::cost))' from 'int' to 'short int' [-Wnarrowing]
60 | q.push({neighbour.node, watts - neighbour.cost});
| ~~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:88:36: warning: narrowing conversion of 'b' from 'int' to 'char' [-Wnarrowing]
88 | edge[a].push_back({b, t, w});
| ^
main.cpp:88:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing]
88 | edge[a].push_back({b, t, w});
| ^
main.cpp:88:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing]
88 | edge[a].push_back({b, t, w});
| ^
main.cpp:89:36: warning: narrowing conversion of 'a' from 'int' to 'char' [-Wnarrowing]
89 | edge[b].push_back({a, t, w});
| ^
main.cpp:89:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing]
89 | edge[b].push_back({a, t, w});
| ^
main.cpp:89:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing]
89 | 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 | 1ms | 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 |