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