【新手】求高手帮忙看一下,这个错误怎么改
#include<stdio.h>#include<string.h>
int main()
{
__int64 n;
__int64 k,i,j,h,p;
__int64 a,b;
__int64 count;
__int64 bb;
__int64 a[100000];
__int64 sum;
scanf("%I64d",&k);
for(i=0;i<k;i++)
{
a=0;
count=1;
sum=0;
scanf("%I64d",&n);
for(j=1;;j++)
{
a=a+j;
if(a==n)
{
b=j;
bb=j;
break;
}
if(a>n)
{
b=j+1;
bb=j+1;
break;
}
}
while(b>=1)
{
b=b/10;
count++;
}
for(p=0;p<count;p++)
{
a[p]=bb%10;
bb=bb/10;
}
sum=a[0]+a[1];
if(sum<=9)
printf("%I64d\n",sum);
if(sum>9)
printf("%I64d\n",sum+1);
}
return 0;
}
编译错误:a' : '__int64 [100000]' differs in levels of indirection from '__int64'
=' : left operand must be l-value
subscript requires array or pointer type