bitaro.cpp: In function 'void calc_small()':
bitaro.cpp:23:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int i=0;i<b[u].size();i++) {
| ~^~~~~~~~~~~~
bitaro.cpp: In function 'int main()':
bitaro.cpp:73:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | while(iter<topo.size()) {
| ~~~~^~~~~~~~~~~~
bitaro.cpp:59:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
59 | scanf("%d %d %d",&n,&m,&q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:62:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
62 | scanf("%d %d",&s,&e);
| ~~~~~^~~~~~~~~~~~~~~
bitaro.cpp:86:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
86 | scanf("%d %d",&t,&y);
| ~~~~~^~~~~~~~~~~~~~~
bitaro.cpp:88:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
88 | scanf("%d",&c[j]);
| ~~~~~^~~~~~~~~~~~
bitaro.cpp: In function 'void calc_small()':
bitaro.cpp:31:26: warning: array subscript <unknown> is outside array bounds of 'int [0]' [-Warray-bounds]
31 | dist[u][sz[u]]=d;
| ~~~~~~~~~~~~~^
bitaro.cpp:37:31: warning: array subscript <unknown> is outside array bounds of 'int [0]' [-Warray-bounds]
37 | else city[u][sz[u]]=u;
| ~~~~~~~~~~~~~^
bitaro.cpp:33:47: warning: array subscript <unknown> is outside array bounds of 'int [0]' [-Warray-bounds]
33 | city[u][sz[u]]=city[nd][it[nd]];
| ~~~~~~~~~~~~~~~^
bitaro.cpp:33:30: warning: array subscript <unknown> is outside array bounds of 'int [0]' [-Warray-bounds]
33 | city[u][sz[u]]=city[nd][it[nd]];
| ~~~~~~~~~~~~~^
bitaro.cpp:35:61: warning: array subscript <unknown> is outside array bounds of 'int [0]' [-Warray-bounds]
35 | if(it[nd]<sz[nd]) pq.push({1+dist[nd][it[nd]],nd});
| ~~~~~~~~~~~~~~~^
bitaro.cpp:25:49: warning: array subscript <unknown> is outside array bounds of 'int [0]' [-Warray-bounds]
25 | pq.push({1+dist[b[u][i]][it[b[u][i]]],b[u][i]});
| ~~~~~~~~~~~~~~~~~~~~~~~~~^
bitaro.cpp: In function 'int main()':
bitaro.cpp:95:32: warning: array subscript j is outside array bounds of 'int [0]' [-Warray-bounds]
95 | if(ok[city[t][j]]) {
| ~~~~~~~~~^
bitaro.cpp:96:34: warning: array subscript j is outside array bounds of 'int [0]' [-Warray-bounds]
96 | ans=dist[t][j];
| ~~~~~~~~~^