0_0_15006057_2441.cpp:9:1: error: '__I64d' does not name a type
__I64d a,b,n,p;
^
0_0_15006057_2441.cpp:10:1: error: '__I64d' does not name a type
__I64d minDiv[maxn],phi[maxn],sum[maxn];
^
0_0_15006057_2441.cpp: In function 'void genphi()':
0_0_15006057_2441.cpp:36:9: error: '__I64d' was not declared in this scope
for(__I64d i=1; i<maxn; i++)
^
0_0_15006057_2441.cpp:36:21: error: 'i' was not declared in this scope
for(__I64d i=1; i<maxn; i++)
^
0_0_15006057_2441.cpp:38:9: error: 'minDiv' was not declared in this scope
minDiv[i]=i;
^
0_0_15006057_2441.cpp:40:9: error: '__I64d' was not declared in this scope
for(__I64d i=2; i*i<maxn; i++)
^
0_0_15006057_2441.cpp:40:21: error: 'i' was not declared in this scope
for(__I64d i=2; i*i<maxn; i++)
^
0_0_15006057_2441.cpp:42:12: error: 'minDiv' was not declared in this scope
if(minDiv[i]==i)
^
0_0_15006057_2441.cpp:44:24: error: expected ';' before 'j'
for(__I64d j=i*i; j<maxn; j+=i)
^
0_0_15006057_2441.cpp:44:31: error: 'j' was not declared in this scope
for(__I64d j=i*i; j<maxn; j+=i)
^
0_0_15006057_2441.cpp:50:5: error: 'phi' was not declared in this scope
phi[1]=1;
^
0_0_15006057_2441.cpp:51:9: error: '__I64d' was not declared in this scope
for(__I64d i=2; i<maxn; i++)
^
0_0_15006057_2441.cpp:51:21: error: 'i' was not declared in this scope
for(__I64d i=2; i<maxn; i++)
^
0_0_15006057_2441.cpp:53:22: error: 'minDiv' was not declared in this scope
phi[i]=phi[i/minDiv[i]];
^
0_0_15006057_2441.cpp: At global scope:
0_0_15006057_2441.cpp:68:5: error: '__I64d' does not name a type
__I64d A[2][2];
^
0_0_15006057_2441.cpp:71:1: error: '__I64d' does not name a type
__I64d Phi;
^
0_0_15006057_2441.cpp: In function 'matrix power(matrix, matrix)':
0_0_15006057_2441.cpp:80:17: error: 'struct matrix' has no member named 'A'
ans.A[i][j]=0;
^
0_0_15006057_2441.cpp:83:21: error: 'struct matrix' has no member named 'A'
ans.A[i][j]+=ans1.A[i][k]*ans2.A[k][j];
^
0_0_15006057_2441.cpp:83:35: error: 'struct matrix' has no member named 'A'
ans.A[i][j]+=ans1.A[i][k]*ans2.A[k][j];
^
0_0_15006057_2441.cpp:83:48: error: 'struct matrix' has no member named 'A'
ans.A[i][j]+=ans1.A[i][k]*ans2.A[k][j];
^
0_0_15006057_2441.cpp:84:24: error: 'struct matrix' has no member named 'A'
if(ans.A[i][j]>Phi)
^
0_0_15006057_2441.cpp:84:32: error: 'Phi' was not declared in this scope
if(ans.A[i][j]>Phi)
^
0_0_15006057_2441.cpp:86:25: error: 'struct matrix' has no member named 'A'
ans.A[i][j]=ans.A[i][j]%Phi+Phi;
^
0_0_15006057_2441.cpp:86:37: error: 'struct matrix' has no member named 'A'
ans.A[i][j]=ans.A[i][j]%Phi+Phi;
^
0_0_15006057_2441.cpp: At global scope:
0_0_15006057_2441.cpp:94:22: error: '__I64d' has not been declared
matrix mod(matrix un,__I64d k)
^
0_0_15006057_2441.cpp: In function 'matrix mod(matrix, int)':
0_0_15006057_2441.cpp:97:9: error: 'struct matrix' has no member named 'A'
ans.A[0][0]=1;
^
0_0_15006057_2441.cpp:98:9: error: 'struct matrix' has no member named 'A'
ans.A[0][1]=0;
^
0_0_15006057_2441.cpp:99:9: error: 'struct matrix' has no member named 'A'
ans.A[1][0]=0;
^
0_0_15006057_2441.cpp:100:9: error: 'struct matrix' has no member named 'A'
ans.A[1][1]=1;
^
0_0_15006057_2441.cpp: At global scope:
0_0_15006057_2441.cpp:110:1: error: '__I64d' does not name a type
__I64d pow_mod(__I64d a,__I64d k)
^
0_0_15006057_2441.cpp: In function 'int main()':
0_0_15006057_2441.cpp:141:39: error: 'a' was not declared in this scope
scanf("%I64d%I64d%I64d%I64d",&a,&b,&p,&n);
^
0_0_15006057_2441.cpp:141:42: error: 'b' was not declared in this scope
scanf("%I64d%I64d%I64d%I64d",&a,&b,&p,&n);
^
0_0_15006057_2441.cpp:141:45: error: 'p' was not declared in this scope
scanf("%I64d%I64d%I64d%I64d",&a,&b,&p,&n);
^
0_0_15006057_2441.cpp:141:48: error: 'n' was not declared in this scope
scanf("%I64d%I64d%I64d%I64d",&a,&b,&p,&n);
^
0_0_15006057_2441.cpp:159:14: error: 'struct matrix' has no member named 'A'
init.A[0][0]=0;
^
0_0_15006057_2441.cpp:160:14: error: 'struct matrix' has no member named 'A'
init.A[0][1]=1;
^
0_0_15006057_2441.cpp:161:14: error: 'struct matrix' has no member named 'A'
init.A[1][0]=1;
^
0_0_15006057_2441.cpp:162:14: error: 'struct matrix' has no member named 'A'
init.A[1][1]=1;
^
0_0_15006057_2441.cpp:165:9: error: 'Phi' was not declared in this scope
Phi=1;
^
0_0_15006057_2441.cpp:166:9: error: '__I64d' was not declared in this scope
__I64d num=p;
^
0_0_15006057_2441.cpp:167:20: error: expected ';' before 'i'
for(__I64d i=1;i<=K;i++)
^
0_0_15006057_2441.cpp:167:24: error: 'i' was not declared in this scope
for(__I64d i=1;i<=K;i++)
^
0_0_15006057_2441.cpp:170:50: error: 'num' was not declared in this scope
if(p%prime[i]==0) {Phi*=(prime[i]-1);num/=prime[i];}
^
0_0_15006057_2441.cpp:172:14: error: 'num' was not declared in this scope
Phi*=num;
^
0_0_15006057_2441.cpp:177:16: error: expected ';' before 'azhi'
__I64d azhi=zhi.A[1][1];
^
0_0_15006057_2441.cpp:178:16: error: expected ';' before 'bzhi'
__I64d bzhi=zhi.A[0][1]+zhi.A[1][1];
^
0_0_15006057_2441.cpp:180:12: error: 'bzhi' was not declared in this scope
if(bzhi>Phi)
^
0_0_15006057_2441.cpp:182:16: error: expected ';' before 'aa1'
__I64d aa1=pow_mod(a,azhi);
^
0_0_15006057_2441.cpp:183:16: error: expected ';' before 'aa2'
__I64d aa2=pow_mod(b,bzhi);
^
0_0_15006057_2441.cpp:184:26: error: 'aa1' was not declared in this scope
printf("%I64d\n",aa1*aa2%p);
^
0_0_15006057_2441.cpp:184:30: error: 'aa2' was not declared in this scope
printf("%I64d\n",aa1*aa2%p);
^
|