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_15093085_8933.cpp:142:11: error: redefinition of 'const int m'
 const int m=2008;
           ^
0_0_15093085_8933.cpp:23:11: note: 'const int m' previously defined here
 const int m=2008;
           ^
0_0_15093085_8933.cpp:143:16: error: redefinition of 'struct node'
 typedef struct node{
                ^
0_0_15093085_8933.cpp:24:16: error: previous definition of 'struct node'
 typedef struct node{
                ^
0_0_15093085_8933.cpp:145:8: error: invalid type in declaration before ';' token
 }Matrix;
        ^
0_0_15093085_8933.cpp:145:8: error: conflicting declaration 'typedef int Matrix'
0_0_15093085_8933.cpp:26:2: note: previous declaration as 'typedef struct node Matrix'
 }Matrix;
  ^
0_0_15093085_8933.cpp:146:13: error: redefinition of 'int dp [10100]'
 int dp[10100];
             ^
0_0_15093085_8933.cpp:27:5: note: 'int dp [10100]' previously declared here
 int dp[10100];
     ^
0_0_15093085_8933.cpp:147:8: error: redefinition of 'Matrix ans'
 Matrix ans,base,a1;
        ^
0_0_15093085_8933.cpp:28:8: note: 'Matrix ans' previously declared here
 Matrix ans,base,a1;
        ^
0_0_15093085_8933.cpp:147:12: error: redefinition of 'Matrix base'
 Matrix ans,base,a1;
            ^
0_0_15093085_8933.cpp:28:12: note: 'Matrix base' previously declared here
 Matrix ans,base,a1;
            ^
0_0_15093085_8933.cpp:147:17: error: redefinition of 'Matrix a1'
 Matrix ans,base,a1;
                 ^
0_0_15093085_8933.cpp:28:17: note: 'Matrix a1' previously declared here
 Matrix ans,base,a1;
                 ^
0_0_15093085_8933.cpp:148:5: error: redefinition of 'int len'
 int len;
     ^
0_0_15093085_8933.cpp:29:5: note: 'int len' previously declared here
 int len;
     ^
0_0_15093085_8933.cpp: In function 'Matrix Mul(Matrix, Matrix)':
0_0_15093085_8933.cpp:150:8: error: redefinition of 'Matrix Mul(Matrix, Matrix)'
 Matrix Mul(Matrix a,Matrix b){
        ^
0_0_15093085_8933.cpp:31:8: note: 'Matrix Mul(Matrix, Matrix)' previously defined here
 Matrix Mul(Matrix a,Matrix b){
        ^
0_0_15093085_8933.cpp: In function 'Matrix Pow(int)':
0_0_15093085_8933.cpp:162:8: error: redefinition of 'Matrix Pow(int)'
 Matrix Pow(int n){
        ^
0_0_15093085_8933.cpp:43:8: note: 'Matrix Pow(int)' previously defined here
 Matrix Pow(int n){
        ^
0_0_15093085_8933.cpp: At global scope:
0_0_15093085_8933.cpp:180:13: error: redefinition of 'std::map<int, int> mp'
 map<int,int>mp;
             ^
0_0_15093085_8933.cpp:61:13: note: 'std::map<int, int> mp' previously declared here
 map<int,int>mp;
             ^
0_0_15093085_8933.cpp: In function 'int main()':
0_0_15093085_8933.cpp:182:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_15093085_8933.cpp:63:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_15093085_8933.cpp: At global scope:
0_0_15093085_8933.cpp:261:11: error: redefinition of 'const int m'
 const int m=2008;
           ^
0_0_15093085_8933.cpp:23:11: note: 'const int m' previously defined here
 const int m=2008;
           ^
0_0_15093085_8933.cpp:262:16: error: redefinition of 'struct node'
 typedef struct node{
                ^
0_0_15093085_8933.cpp:24:16: error: previous definition of 'struct node'
 typedef struct node{
                ^
0_0_15093085_8933.cpp:264:8: error: invalid type in declaration before ';' token
 }Matrix;
        ^
0_0_15093085_8933.cpp:264:8: error: conflicting declaration 'typedef int Matrix'
0_0_15093085_8933.cpp:26:2: note: previous declaration as 'typedef struct node Matrix'
 }Matrix;
  ^
0_0_15093085_8933.cpp:265:13: error: redefinition of 'int dp [10100]'
 int dp[10100];
             ^
0_0_15093085_8933.cpp:27:5: note: 'int dp [10100]' previously declared here
 int dp[10100];
     ^
0_0_15093085_8933.cpp:266:8: error: redefinition of 'Matrix ans'
 Matrix ans,base,a1;
        ^
0_0_15093085_8933.cpp:28:8: note: 'Matrix ans' previously declared here
 Matrix ans,base,a1;
        ^
0_0_15093085_8933.cpp:266:12: error: redefinition of 'Matrix base'
 Matrix ans,base,a1;
            ^
0_0_15093085_8933.cpp:28:12: note: 'Matrix base' previously declared here
 Matrix ans,base,a1;
            ^
0_0_15093085_8933.cpp:266:17: error: redefinition of 'Matrix a1'
 Matrix ans,base,a1;
                 ^
0_0_15093085_8933.cpp:28:17: note: 'Matrix a1' previously declared here
 Matrix ans,base,a1;
                 ^
0_0_15093085_8933.cpp:267:5: error: redefinition of 'int len'
 int len;
     ^
0_0_15093085_8933.cpp:29:5: note: 'int len' previously declared here
 int len;
     ^
0_0_15093085_8933.cpp: In function 'Matrix Mul(Matrix, Matrix)':
0_0_15093085_8933.cpp:269:8: error: redefinition of 'Matrix Mul(Matrix, Matrix)'
 Matrix Mul(Matrix a,Matrix b){
        ^
0_0_15093085_8933.cpp:31:8: note: 'Matrix Mul(Matrix, Matrix)' previously defined here
 Matrix Mul(Matrix a,Matrix b){
        ^
0_0_15093085_8933.cpp: In function 'Matrix Pow(int)':
0_0_15093085_8933.cpp:281:8: error: redefinition of 'Matrix Pow(int)'
 Matrix Pow(int n){
        ^
0_0_15093085_8933.cpp:43:8: note: 'Matrix Pow(int)' previously defined here
 Matrix Pow(int n){
        ^
0_0_15093085_8933.cpp: At global scope:
0_0_15093085_8933.cpp:299:13: error: redefinition of 'std::map<int, int> mp'
 map<int,int>mp;
             ^
0_0_15093085_8933.cpp:61:13: note: 'std::map<int, int> mp' previously declared here
 map<int,int>mp;
             ^
0_0_15093085_8933.cpp: In function 'int main()':
0_0_15093085_8933.cpp:301:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_15093085_8933.cpp:63:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_15093085_8933.cpp: At global scope:
0_0_15093085_8933.cpp:380:11: error: redefinition of 'const int m'
 const int m=2008;
           ^
0_0_15093085_8933.cpp:23:11: note: 'const int m' previously defined here
 const int m=2008;
           ^
0_0_15093085_8933.cpp:381:16: error: redefinition of 'struct node'
 typedef struct node{
                ^
0_0_15093085_8933.cpp:24:16: error: previous definition of 'struct node'
 typedef struct node{
                ^
0_0_15093085_8933.cpp:383:8: error: invalid type in declaration before ';' token
 }Matrix;
        ^
0_0_15093085_8933.cpp:383:8: error: conflicting declaration 'typedef int Matrix'
0_0_15093085_8933.cpp:26:2: note: previous declaration as 'typedef struct node Matrix'
 }Matrix;
  ^
0_0_15093085_8933.cpp:384:13: error: redefinition of 'int dp [10100]'
 int dp[10100];
             ^
0_0_15093085_8933.cpp:27:5: note: 'int dp [10100]' previously declared here
 int dp[10100];
     ^
0_0_15093085_8933.cpp:385:8: error: redefinition of 'Matrix ans'
 Matrix ans,base,a1;
        ^
0_0_15093085_8933.cpp:28:8: note: 'Matrix ans' previously declared here
 Matrix ans,base,a1;
        ^
0_0_15093085_8933.cpp:385:12: error: redefinition of 'Matrix base'
 Matrix ans,base,a1;
            ^
0_0_15093085_8933.cpp:28:12: note: 'Matrix base' previously declared here
 Matrix ans,base,a1;
            ^
0_0_15093085_8933.cpp:385:17: error: redefinition of 'Matrix a1'
 Matrix ans,base,a1;
                 ^
0_0_15093085_8933.cpp:28:17: note: 'Matrix a1' previously declared here
 Matrix ans,base,a1;
                 ^
0_0_15093085_8933.cpp:386:5: error: redefinition of 'int len'
 int len;
     ^
0_0_15093085_8933.cpp:29:5: note: 'int len' previously declared here
 int len;
     ^
0_0_15093085_8933.cpp: In function 'Matrix Mul(Matrix, Matrix)':
0_0_15093085_8933.cpp:388:8: error: redefinition of 'Matrix Mul(Matrix, Matrix)'
 Matrix Mul(Matrix a,Matrix b){
        ^
0_0_15093085_8933.cpp:31:8: note: 'Matrix Mul(Matrix, Matrix)' previously defined here
 Matrix Mul(Matrix a,Matrix b){
        ^
0_0_15093085_8933.cpp: In function 'Matrix Pow(int)':
0_0_15093085_8933.cpp:400:8: error: redefinition of 'Matrix Pow(int)'
 Matrix Pow(int n){
        ^
0_0_15093085_8933.cpp:43:8: note: 'Matrix Pow(int)' previously defined here
 Matrix Pow(int n){
        ^
0_0_15093085_8933.cpp: At global scope:
0_0_15093085_8933.cpp:418:13: error: redefinition of 'std::map<int, int> mp'
 map<int,int>mp;
             ^
0_0_15093085_8933.cpp:61:13: note: 'std::map<int, int> mp' previously declared here
 map<int,int>mp;
             ^
0_0_15093085_8933.cpp: In function 'int main()':
0_0_15093085_8933.cpp:420:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_15093085_8933.cpp:63:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_15093085_8933.cpp: At global scope:
0_0_15093085_8933.cpp:499:11: error: redefinition of 'const int m'
 const int m=2008;
           ^
0_0_15093085_8933.cpp:23:11: note: 'const int m' previously defined here
 const int m=2008;
           ^
0_0_15093085_8933.cpp:500:16: error: redefinition of 'struct node'
 typedef struct node{
                ^
0_0_15093085_8933.cpp:24:16: error: previous definition of 'struct node'
 typedef struct node{
                ^
0_0_15093085_8933.cpp:502:8: error: invalid type in declaration before ';' token
 }Matrix;
        ^
0_0_15093085_8933.cpp:502:8: error: conflicting declaration 'typedef int Matrix'
0_0_15093085_8933.cpp:26:2: note: previous declaration as 'typedef struct node Matrix'
 }Matrix;
  ^
0_0_15093085_8933.cpp:503:13: error: redefinition of 'int dp [10100]'
 int dp


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-26 00:22:50, Gzip enabled