/in/foo.cc: In function 'int main()':
/in/foo.cc:55:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d",s[len-1]);
~~~~~~~~^
/in/foo.cc:58:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d",s[i]);
~~~~^
/in/foo.cc:59:39: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
else if(s[i] >= 100) printf("0%d",s[i]);
~~~~^
/in/foo.cc:60:39: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
else if(s[i] >= 10) printf("00%d",s[i]);
~~~~^
/in/foo.cc:61:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
else printf("000%d",s[i]);
~~~~^