soccer.cpp: In function 'void bfs()':
soccer.cpp:41:25: warning: narrowing conversion of '(((int)e.d::a) - 1)' from 'int' to 'short int' [-Wnarrowing]
41 | q.push({e.a - 1, e.b, e.koszt + 1});
| ~~~~^~~
soccer.cpp:44:25: warning: narrowing conversion of '(((int)e.d::a) + 1)' from 'int' to 'short int' [-Wnarrowing]
44 | q.push({e.a + 1, e.b, e.koszt + 1});
| ~~~~^~~
soccer.cpp:48:30: warning: narrowing conversion of '(((int)e.d::b) - 1)' from 'int' to 'short int' [-Wnarrowing]
48 | q.push({e.a, e.b - 1, e.koszt + 1});
| ~~~~^~~
soccer.cpp:51:30: warning: narrowing conversion of '(((int)e.d::b) + 1)' from 'int' to 'short int' [-Wnarrowing]
51 | q.push({e.a, e.b + 1, e.koszt + 1});
| ~~~~^~~
soccer.cpp: In function 'void dijkstra(std::pair<int, int>)':
soccer.cpp:73:17: warning: narrowing conversion of 'st.std::pair<int, int>::first' from 'int' to 'short int' [-Wnarrowing]
73 | pq.push({st.first, st.second, 0, 0});
| ~~~^~~~~
soccer.cpp:73:27: warning: narrowing conversion of 'st.std::pair<int, int>::second' from 'int' to 'short int' [-Wnarrowing]
73 | pq.push({st.first, st.second, 0, 0});
| ~~~^~~~~~
soccer.cpp:74:17: warning: narrowing conversion of 'st.std::pair<int, int>::first' from 'int' to 'short int' [-Wnarrowing]
74 | pq.push({st.first, st.second, 1, 0});
| ~~~^~~~~
soccer.cpp:74:27: warning: narrowing conversion of 'st.std::pair<int, int>::second' from 'int' to 'short int' [-Wnarrowing]
74 | pq.push({st.first, st.second, 1, 0});
| ~~~^~~~~~
soccer.cpp:84:51: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
84 | if(odl[l][u.b][0] == -1) pq.push({l, u.b, 0, C * abs(l - u.a) + u.koszt});
| ^
soccer.cpp:85:51: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
85 | if(odl[l][u.b][1] == -1) pq.push({l, u.b, 1, B + A * abs(l - u.a) + u.koszt});
| ^
soccer.cpp:88:51: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
88 | if(odl[l][u.b][0] == -1) pq.push({l, u.b, 0, C * abs(l - u.a) + C * odl2[u.a][u.b] + u.koszt});
| ^
soccer.cpp:89:51: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
89 | if(odl[l][u.b][1] == -1) pq.push({l, u.b, 1, C * odl2[u.a][u.b] + B + A * abs(l - u.a) + u.koszt});
| ^
soccer.cpp:95:56: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
95 | if(odl[u.a][l][0] == -1) pq.push({u.a, l, 0, C * abs(l - u.b) + u.koszt});
| ^
soccer.cpp:96:56: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
96 | if(odl[u.a][l][1] == -1) pq.push({u.a, l, 1, B + A * abs(l - u.b) + u.koszt});
| ^
soccer.cpp:99:56: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
99 | if(odl[u.a][l][0] == -1) pq.push({u.a, l, 0, C * abs(l - u.b) + C * odl2[u.a][u.b] + u.koszt});
| ^
soccer.cpp:100:56: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
100 | if(odl[u.a][l][1] == -1) pq.push({u.a, l, 1, C * odl2[u.a][u.b] + B + A * abs(l - u.b) + u.koszt});
| ^