/in/foo.cc: In function 'int main()':
/in/foo.cc:54:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d",s[len-1]);
^
/in/foo.cc:57:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d",s[i]);
^
/in/foo.cc:58:41: 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:59:41: 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:60:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
else printf("000%d",s[i]);
^
/in/foo.cc: In function 'int Multiply(int, int)':
/in/foo.cc:12:22: warning: array subscript is above array bounds [-Warray-bounds]
s[i + 1] += s[i] / 10000;
^~~~~
/in/foo.cc:12:12: warning: array subscript is above array bounds [-Warray-bounds]
s[i + 1] += s[i] / 10000;
~~~~~~~~~^~~~~~~~~~~~~~~