/in/foo.cc: In function 'void init()':
/in/foo.cc:20:46: warning: overflow in implicit constant conversion [-Woverflow]
memset(dis,0x3f3f3f3f3f3f3f3f,sizeof(dis));
^
/in/foo.cc: In function 'long long int get_len()':
/in/foo.cc:66:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<path.size();i++) len+=path[i].val;
~^~~~~~~~~~~~
/in/foo.cc: In function 'long long int f(long long int)':
/in/foo.cc:73:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (l<path.size()&&sum1+path[l].val<=x) {
~^~~~~~~~~~~~