我自己运行出来是对的,但是提交上去答案就不对了,这是为什么

#include<stdio.h>
#include<math.h>
int main()
{
int n,a,m,s=0,i,j;
scanf("%d%d",&n,&a);
for(i=1;i<=n;i++)
for(j=0;j<i;j++)
{
m=a*pow(10,j);
s+=m;
}
printf("%d\n",s);
return 0;
}

img