Pagini recente » Borderou de evaluare (job #450455) | Borderou de evaluare (job #2177093) | Borderou de evaluare (job #2900278) | Borderou de evaluare (job #1943045) | Borderou de evaluare (job #3145766)
Borderou de evaluare (job #3145766)
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 |
1 | 0ms | 303kb | OK | 10 |
2 | 3ms | 557kb | OK | 10 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 53ms | 880kb | Time limit exceeded | 0 |
5 | 9ms | 303kb | OK | 10 |
6 | 8ms | 557kb | Incorect | 0 |
7 | 54ms | 557kb | Time limit exceeded | 0 |
8 | 54ms | 24174kb | Time limit exceeded | 0 |
9 | 0ms | 303kb | OK | 10 |
10 | 54ms | 6443kb | Time limit exceeded | 0 |
Punctaj total | 40 |