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_21367758_2607.cpp:23:34: error: redefinition of 'int b'
  void init(int a,int b,int c,int b){
                                  ^
0_0_21367758_2607.cpp:23:22: note: 'int b' previously declared here
  void init(int a,int b,int c,int b){
                      ^
0_0_21367758_2607.cpp: In member function 'void Matrix::init(int, int, int)':
0_0_21367758_2607.cpp:24:41: error: 'd' was not declared in this scope
   v[0][0]=a,v[0][1]=b,v[1][0]=c,v[1][1]=d;
                                         ^
0_0_21367758_2607.cpp: In member function 'Matrix Matrix::operator*(Matrix&)':
0_0_21367758_2607.cpp:28:19: error: no matching function for call to 'Matrix::init(int, int, int, int)'
   res.init(0,0,0,0);
                   ^
0_0_21367758_2607.cpp:28:19: note: candidate is:
0_0_21367758_2607.cpp:23:7: note: void Matrix::init(int, int, int)
  void init(int a,int b,int c,int b){
       ^
0_0_21367758_2607.cpp:23:7: note:   candidate expects 3 arguments, 4 provided
0_0_21367758_2607.cpp:33:20: error: 'p' was not declared in this scope
      res.v[i][j] %=p;
                    ^
0_0_21367758_2607.cpp: In member function 'Matrix Matrix::operator-(Matrix&)':
0_0_21367758_2607.cpp:39:19: error: 'j' was not declared in this scope
   for(int i=0;i<2;j++)
                   ^
0_0_21367758_2607.cpp: In function 'Matrix pow(Matrix, long long int)':
0_0_21367758_2607.cpp:49:18: error: no matching function for call to 'Matrix::init(int, int, int, int)'
  res.init(1,0,0,1);
                  ^
0_0_21367758_2607.cpp:49:18: note: candidate is:
0_0_21367758_2607.cpp:23:7: note: void Matrix::init(int, int, int)
  void init(int a,int b,int c,int b){
       ^
0_0_21367758_2607.cpp:23:7: note:   candidate expects 3 arguments, 4 provided
0_0_21367758_2607.cpp:50:16: error: no match for 'operator*=' (operand types are 'Matrix' and 'Matrix')
  for(;y;y>>=1,x*=x)
                ^
0_0_21367758_2607.cpp: In function 'int main()':
0_0_21367758_2607.cpp:60:17: error: no matching function for call to 'Matrix::init(int, int, int, int)'
   A.init(0,2,1,1);
                 ^
0_0_21367758_2607.cpp:60:17: note: candidate is:
0_0_21367758_2607.cpp:23:7: note: void Matrix::init(int, int, int)
  void init(int a,int b,int c,int b){
       ^
0_0_21367758_2607.cpp:23:7: note:   candidate expects 3 arguments, 4 provided
0_0_21367758_2607.cpp:61:25: error: no matching function for call to 'Matrix::init(int, int, int, int)'
   if(n&1)B.init(-1,2,1,0);
                         ^
0_0_21367758_2607.cpp:61:25: note: candidate is:
0_0_21367758_2607.cpp:23:7: note: void Matrix::init(int, int, int)
  void init(int a,int b,int c,int b){
       ^
0_0_21367758_2607.cpp:23:7: note:   candidate expects 3 arguments, 4 provided
0_0_21367758_2607.cpp:62:22: error: no matching function for call to 'Matrix::init(int, int, int, int)'
   else B.init(1,0,0,1);
                      ^
0_0_21367758_2607.cpp:62:22: note: candidate is:
0_0_21367758_2607.cpp:23:7: note: void Matrix::init(int, int, int)
  void init(int a,int b,int c,int b){
       ^
0_0_21367758_2607.cpp:23:7: note:   candidate expects 3 arguments, 4 provided
0_0_21367758_2607.cpp:63:18: error: 'b' was not declared in this scope
   C=pow(pow(A,n)-b,m-1);
                  ^


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-11-16 12:56:55, Gzip enabled