0_0_39186189_12397.cpp:5:6: error: 'N' was not declared in this scope
5 | ll a[N][N],f[N];
| ^
0_0_39186189_12397.cpp:5:9: error: 'N' was not declared in this scope
5 | ll a[N][N],f[N];
| ^
0_0_39186189_12397.cpp:5:14: error: 'N' was not declared in this scope
5 | ll a[N][N],f[N];
| ^
0_0_39186189_12397.cpp: In function 'void pow_a()':
0_0_39186189_12397.cpp:7:14: error: 'N' was not declared in this scope
7 | ll w[N][N];
| ^
0_0_39186189_12397.cpp:10:28: error: 'a' was not declared in this scope
10 | if(a[i][k]){
| ^
0_0_39186189_12397.cpp:12:41: error: 'w' was not declared in this scope
12 | w[i][j]+=a[i][k]*a[k][j];
| ^
0_0_39186189_12397.cpp:13:51: error: 'p' was not declared in this scope
13 | w[i][j]%=(p-1);
| ^
0_0_39186189_12397.cpp:18:16: error: 'a' was not declared in this scope
18 | memcpy(a,w,sizeof(a));
| ^
0_0_39186189_12397.cpp:18:18: error: 'w' was not declared in this scope
18 | memcpy(a,w,sizeof(a));
| ^
0_0_39186189_12397.cpp: In function 'void f_a()':
0_0_39186189_12397.cpp:21:14: error: 'N' was not declared in this scope
21 | ll w[N];
| ^
0_0_39186189_12397.cpp:22:16: error: 'w' was not declared in this scope
22 | memset(w,0,sizeof(w));
| ^
0_0_39186189_12397.cpp:25:31: error: 'f' was not declared in this scope
25 | w[i]+=f[j]*a[i][j];
| ^
0_0_39186189_12397.cpp:25:36: error: 'a' was not declared in this scope
25 | w[i]+=f[j]*a[i][j];
| ^
0_0_39186189_12397.cpp:26:32: error: 'p' was not declared in this scope
26 | w[i]%=(p-1);
| ^
0_0_39186189_12397.cpp:29:16: error: 'f' was not declared in this scope
29 | memcpy(f,w,sizeof(f));
| ^
0_0_39186189_12397.cpp: In function 'void init_a()':
0_0_39186189_12397.cpp:32:9: error: 'a' was not declared in this scope
32 | a[1][1]=0;
| ^
0_0_39186189_12397.cpp: In function 'void init_f()':
0_0_39186189_12397.cpp:38:9: error: 'f' was not declared in this scope
38 | f[1]=0;
| ^
0_0_39186189_12397.cpp: In function 'll q_pow(ll, ll)':
0_0_39186189_12397.cpp:56:30: error: 'p' was not declared in this scope
56 | ans%=p;
| ^
0_0_39186189_12397.cpp:59:20: error: 'p' was not declared in this scope
59 | a%=p;
| ^
0_0_39186189_12397.cpp: In function 'int main()':
0_0_39186189_12397.cpp:69:40: error: 'f' was not declared in this scope
69 | cout<<(q_pow(x,f[1])*q_pow(y,f[2]))%p<<endl;
| ^
0_0_39186189_12397.cpp:69:61: error: 'p' was not declared in this scope
69 | cout<<(q_pow(x,f[1])*q_pow(y,f[2]))%p<<endl;
| ^
|