Pagini recente » Borderou de evaluare (job #2964801) | Borderou de evaluare (job #2225999) | Borderou de evaluare (job #604591) | Borderou de evaluare (job #730647) | Borderou de evaluare (job #3145771)
Borderou de evaluare (job #3145771)
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:57:55: warning: array subscript has type 'char' [-Wchar-subscripts]
57 | if(min_time[neighbour.node][watts - neighbour.cost] > min_time[node][watts] + neighbour.time){
| ~~~~~~~~~~^~~~
main.cpp:58:60: warning: array subscript has type 'char' [-Wchar-subscripts]
58 | min_time[neighbour.node][watts - neighbour.cost] = min_time[node][watts] + neighbour.time;
| ~~~~~~~~~~^~~~
main.cpp:59:64: warning: array subscript has type 'char' [-Wchar-subscripts]
59 | if(!in_queue[neighbour.node]){
| ~~~~~~~~~~^~~~
main.cpp:60:68: warning: array subscript has type 'char' [-Wchar-subscripts]
60 | in_queue[neighbour.node] = true;
| ~~~~~~~~~~^~~~
main.cpp:61:79: warning: narrowing conversion of '(watts - ((int)neighbour.Edge::cost))' from 'int' to 'short int' [-Wnarrowing]
61 | q.push({neighbour.node, watts - neighbour.cost});
| ~~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:89:36: warning: narrowing conversion of 'b' from 'int' to 'char' [-Wnarrowing]
89 | edge[a].push_back({b, t, w});
| ^
main.cpp:89:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing]
89 | edge[a].push_back({b, t, w});
| ^
main.cpp:89:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing]
89 | edge[a].push_back({b, t, w});
| ^
main.cpp:90:36: warning: narrowing conversion of 'a' from 'int' to 'char' [-Wnarrowing]
90 | edge[b].push_back({a, t, w});
| ^
main.cpp:90:39: warning: narrowing conversion of 't' from 'int' to 'char' [-Wnarrowing]
90 | edge[b].push_back({a, t, w});
| ^
main.cpp:90:42: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing]
90 | 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 | OK | 10 |
9 | 0ms | 303kb | OK | 10 |
10 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 50 |