F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
      |                                                             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-18 14:07:37, Gzip enabled