bridge.cpp:97:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
bridge.cpp: In function 'int main()':
bridge.cpp:119:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n",res);
^
bridge.cpp:126:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < pos.size(); i++){
^
bridge.cpp:98:7: warning: unused variable 't' [-Wunused-variable]
long t,i,j,k,n,m,x,y,res=0,mn=MAX,v;
^
bridge.cpp:98:11: warning: unused variable 'j' [-Wunused-variable]
long t,i,j,k,n,m,x,y,res=0,mn=MAX,v;
^
bridge.cpp:98:36: warning: unused variable 'v' [-Wunused-variable]
long t,i,j,k,n,m,x,y,res=0,mn=MAX,v;
^
bridge.cpp:101:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld",&k,&n);
^
bridge.cpp:103:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %lld %s %lld",c1,&x,c2,&y);
^