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_38339824_23656.cpp: In member function 'void Mat::print()':
0_0_38339824_23656.cpp:34:24: error: 'm' was not declared in this scope
         for (int i=0;i<m;i++,puts(""))
                        ^
0_0_38339824_23656.cpp: In member function 'void Mat::set(long long int)':
0_0_38339824_23656.cpp:41:34: error: 'm' was not declared in this scope
         if (x==1) for (int i=0;i<m;i++) v[i][i]=1;
                                  ^
0_0_38339824_23656.cpp: In member function 'Mat Mat::operator*(Mat)':
0_0_38339824_23656.cpp:45:24: error: 'm' was not declared in this scope
         for (int i=0;i<m;i++)
                        ^
0_0_38339824_23656.cpp:48:65: error: 'mod' was not declared in this scope
                     ans.v[i][j]=(ans.v[i][j]+v[i][k]*x.v[k][j])%mod;
                                                                 ^
0_0_38339824_23656.cpp: At global scope:
0_0_38339824_23656.cpp:66:10: error: '::main' must return 'int'
 int main(){
          ^
0_0_38339824_23656.cpp: In function 'int main()':
0_0_38339824_23656.cpp:68:12: error: 'mod' was not declared in this scope
         x%=mod,y%=mod;
            ^
0_0_38339824_23656.cpp:70:18: error: 'm' was not declared in this scope
         int newi[m]={2,1,1,1};
                  ^
0_0_38339824_23656.cpp:75:23: error: 'newi' was not declared in this scope
         memcpy(M.v[0],newi,sizeof newi);
                       ^
0_0_38339824_23656.cpp:76:21: error: 'newd' was not declared in this scope
         memcpy(Md.v,newd,sizeof newd);
                     ^


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-22 16:27:04, Gzip enabled