bitaro.cpp: In function 'int calc_dp(int)':
bitaro.cpp:22:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(int j=0;j<adj[i].size();j++)
| ~^~~~~~~~~~~~~~
bitaro.cpp: In function 'int main()':
bitaro.cpp:58:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for(int j=0;j<adj[v].size();j++)
| ~^~~~~~~~~~~~~~
bitaro.cpp:70:54: warning: operation on 'ptr1' may be undefined [-Wsequence-point]
70 | cur={maxd[v][ptr1].fi+1, maxd[v][ptr1++].se};
| ~~~~^~
bitaro.cpp:70:54: warning: operation on 'ptr1' may be undefined [-Wsequence-point]
bitaro.cpp:74:54: warning: operation on 'ptr2' may be undefined [-Wsequence-point]
74 | cur={maxd[to][ptr2].fi, maxd[to][ptr2++].se};
| ~~~~^~
bitaro.cpp:74:54: warning: operation on 'ptr2' may be undefined [-Wsequence-point]
bitaro.cpp:84:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
84 | for(int i=0;i<tmp.size();i++) maxd[to][i]=tmp[i];
| ~^~~~~~~~~~~
bitaro.cpp:85:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | for(int i=0;i<tmp.size();i++) used[tmp[i].se]=0;
| ~^~~~~~~~~~~