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_19727106_4710.cpp: In function 'Matrix Mul(Matrix, Matrix, int)':
0_0_19727106_4710.cpp:26:30: error: expected unqualified-id before '[' token
             ans.m[i][j]=(ans.[i][j]+A.m[i][k]*B.m[k][j])%mod;
                              ^
0_0_19727106_4710.cpp: At global scope:
0_0_19727106_4710.cpp:32:23: error: expected ',' or '...' before 'int'
 Matrix quick(Matrix A int n,int mod)
                       ^
0_0_19727106_4710.cpp: In function 'Matrix quick(Matrix)':
0_0_19727106_4710.cpp:35:11: error: 'n' was not declared in this scope
     while(n)
           ^
0_0_19727106_4710.cpp:37:26: error: 'mod' was not declared in this scope
         if(n&1)d=Mul(d,t,mod);
                          ^
0_0_19727106_4710.cpp:39:19: error: 'mod' was not declared in this scope
         t=Mul(t,t,mod);
                   ^
0_0_19727106_4710.cpp: In function 'int main()':
0_0_19727106_4710.cpp:61:37: error: too many arguments to function 'Matrix quick(Matrix)'
             Matrix ans=quick(A,n-2,7);
                                     ^
0_0_19727106_4710.cpp:32:8: note: declared here
 Matrix quick(Matrix A int n,int mod)
        ^


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-19 05:53:58, Gzip enabled