0_0_32972968_21996.cpp:5:2: error: stray '#' in program
int i,a,b,n;
^
0_0_32972968_21996.cpp:6:2: error: stray '#' in program
f[1]=1;f[2]=1;
^
0_0_32972968_21996.cpp:7:2: error: stray '#' in program
while(scanf("%d%d%d",&a,&b,&n)!=EOF&&a||b||n)
^
0_0_32972968_21996.cpp:8:2: error: stray '#' in program
{
^
0_0_32972968_21996.cpp:9:2: error: stray '#' in program
for(i=3;i<10000;i++)
^
0_0_32972968_21996.cpp:9:8: error: stray '#' in program
for(i=3;i<10000;i++)
^
0_0_32972968_21996.cpp:10:2: error: stray '#' in program
{
^
0_0_32972968_21996.cpp:10:8: error: stray '#' in program
{
^
0_0_32972968_21996.cpp:11:2: error: stray '#' in program
f[i]=(a*f[i-1]+b*f[i-2])%7;
^
0_0_32972968_21996.cpp:11:8: error: stray '#' in program
f[i]=(a*f[i-1]+b*f[i-2])%7;
^
0_0_32972968_21996.cpp:11:14: error: stray '#' in program
f[i]=(a*f[i-1]+b*f[i-2])%7;
^
0_0_32972968_21996.cpp:12:2: error: stray '#' in program
if(f[i]==1&&f[i-1]==1)
^
0_0_32972968_21996.cpp:12:8: error: stray '#' in program
if(f[i]==1&&f[i-1]==1)
^
0_0_32972968_21996.cpp:12:14: error: stray '#' in program
if(f[i]==1&&f[i-1]==1)
^
0_0_32972968_21996.cpp:13:2: error: stray '#' in program
break;
^
0_0_32972968_21996.cpp:13:8: error: stray '#' in program
break;
^
0_0_32972968_21996.cpp:13:14: error: stray '#' in program
break;
^
0_0_32972968_21996.cpp:13:20: error: stray '#' in program
break;
^
0_0_32972968_21996.cpp:14:2: error: stray '#' in program
}
^
0_0_32972968_21996.cpp:14:8: error: stray '#' in program
}
^
0_0_32972968_21996.cpp:15:2: error: stray '#' in program
n=n%(i-2);
^
0_0_32972968_21996.cpp:15:8: error: stray '#' in program
n=n%(i-2);
^
0_0_32972968_21996.cpp:16:2: error: stray '#' in program
printf("%d\n",f[n]);
^
0_0_32972968_21996.cpp:16:8: error: stray '#' in program
printf("%d\n",f[n]);
^
0_0_32972968_21996.cpp:17:2: error: stray '#' in program
}
^
0_0_32972968_21996.cpp: In function 'int main()':
0_0_32972968_21996.cpp:5:3: error: lvalue required as unary '&' operand
int i,a,b,n;
^
0_0_32972968_21996.cpp:6:3: error: lvalue required as unary '&' operand
f[1]=1;f[2]=1;
^
0_0_32972968_21996.cpp:7:3: error: lvalue required as unary '&' operand
while(scanf("%d%d%d",&a,&b,&n)!=EOF&&a||b||n)
^
0_0_32972968_21996.cpp:8:3: error: lvalue required as unary '&' operand
{
^
0_0_32972968_21996.cpp:9:3: error: lvalue required as unary '&' operand
for(i=3;i<10000;i++)
^
0_0_32972968_21996.cpp:9:9: error: lvalue required as unary '&' operand
for(i=3;i<10000;i++)
^
0_0_32972968_21996.cpp:10:3: error: lvalue required as unary '&' operand
{
^
0_0_32972968_21996.cpp:10:9: error: lvalue required as unary '&' operand
{
^
0_0_32972968_21996.cpp:11:3: error: lvalue required as unary '&' operand
f[i]=(a*f[i-1]+b*f[i-2])%7;
^
0_0_32972968_21996.cpp:11:9: error: lvalue required as unary '&' operand
f[i]=(a*f[i-1]+b*f[i-2])%7;
^
0_0_32972968_21996.cpp:11:15: error: lvalue required as unary '&' operand
f[i]=(a*f[i-1]+b*f[i-2])%7;
^
0_0_32972968_21996.cpp:12:3: error: lvalue required as unary '&' operand
if(f[i]==1&&f[i-1]==1)
^
0_0_32972968_21996.cpp:12:9: error: lvalue required as unary '&' operand
if(f[i]==1&&f[i-1]==1)
^
0_0_32972968_21996.cpp:12:15: error: lvalue required as unary '&' operand
if(f[i]==1&&f[i-1]==1)
^
0_0_32972968_21996.cpp:13:3: error: lvalue required as unary '&' operand
break;
^
0_0_32972968_21996.cpp:13:9: error: lvalue required as unary '&' operand
break;
^
0_0_32972968_21996.cpp:13:15: error: lvalue required as unary '&' operand
break;
^
0_0_32972968_21996.cpp:13:21: error: lvalue required as unary '&' operand
break;
^
0_0_32972968_21996.cpp:13:25: error: break statement not within loop or switch
break;
^
0_0_32972968_21996.cpp:14:3: error: lvalue required as unary '&' operand
}
^
0_0_32972968_21996.cpp:14:9: error: lvalue required as unary '&' operand
}
^
0_0_32972968_21996.cpp:15:3: error: lvalue required as unary '&' operand
n=n%(i-2);
^
0_0_32972968_21996.cpp:15:9: error: lvalue required as unary '&' operand
n=n%(i-2);
^
0_0_32972968_21996.cpp:16:3: error: lvalue required as unary '&' operand
printf("%d\n",f[n]);
^
0_0_32972968_21996.cpp:16:9: error: lvalue required as unary '&' operand
printf("%d\n",f[n]);
^
0_0_32972968_21996.cpp:17:3: error: lvalue required as unary '&' operand
}
^
|