/in/foo.cc: In function 'int main()':
/in/foo.cc:39:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<strlen(st);i++)
~^~~~~~~~~~~
/in/foo.cc: In function 'void multiplication(int)':
/in/foo.cc:8:36: warning: iteration 10004 invokes undefined behavior [-Waggressive-loop-optimizations]
for (int i=1;i<=100000;i++) ans[i]*=k;
~~~~~~^~~
/in/foo.cc:8:16: note: within this loop
for (int i=1;i<=100000;i++) ans[i]*=k;
~^~~~~~~~
/in/foo.cc:11:11: warning: iteration 10003 invokes undefined behavior [-Waggressive-loop-optimizations]
ans[i+1]+=ans[i]/mods;
^
/in/foo.cc:9:16: note: within this loop
for (int i=1;i<=100000;i++)
~^~~~~~~~
/in/foo.cc: In function 'void power(int)':
/in/foo.cc:26:36: warning: iteration 10004 invokes undefined behavior [-Waggressive-loop-optimizations]
for (int i=1;i<=100000;i++) sum[i]*=k;
~~~~~~^~~
/in/foo.cc:26:16: note: within this loop
for (int i=1;i<=100000;i++) sum[i]*=k;
~^~~~~~~~
/in/foo.cc:29:11: warning: iteration 10003 invokes undefined behavior [-Waggressive-loop-optimizations]
sum[i+1]+=sum[i]/mods;
^
/in/foo.cc:27:16: note: within this loop
for (int i=1;i<=100000;i++)
~^~~~~~~~