Pagini recente » Borderou de evaluare (job #1342093) | Borderou de evaluare (job #614388) | Borderou de evaluare (job #1412272) | Borderou de evaluare (job #1766457) | Borderou de evaluare (job #3145744)
Borderou de evaluare (job #3145744)
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 |
1 | 0ms | 303kb | OK | 10 |
2 | 0ms | 303kb | Incorect | 0 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 0ms | 303kb | Incorect | 0 |
5 | 0ms | 303kb | OK | 10 |
6 | 0ms | 303kb | Incorect | 0 |
7 | 0ms | 303kb | Incorect | 0 |
8 | 0ms | 303kb | OK | 10 |
9 | 0ms | 303kb | Incorect | 0 |
10 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 30 |