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_27000753_26057.cpp:5:11: error: expected primary-expression before '=' token
 #define N = 4;
           ^
0_0_27000753_26057.cpp:10:11: note: in expansion of macro 'N'
     LL m[ N][N];
           ^
0_0_27000753_26057.cpp:5:14: error: expected ']' before ';' token
 #define N = 4;
              ^
0_0_27000753_26057.cpp:10:11: note: in expansion of macro 'N'
     LL m[ N][N];
           ^
0_0_27000753_26057.cpp:10:12: error: expected unqualified-id before ']' token
     LL m[ N][N];
            ^
0_0_27000753_26057.cpp:10:15: error: expected unqualified-id before ']' token
     LL m[ N][N];
               ^
0_0_27000753_26057.cpp: In function 'Matrix operator*(const Matrix&, const Matrix&)':
0_0_27000753_26057.cpp:5:11: error: expected primary-expression before '=' token
 #define N = 4;
           ^
0_0_27000753_26057.cpp:16:25: note: in expansion of macro 'N'
     for (int i = 0; i < N ;
                         ^
0_0_27000753_26057.cpp:16:27: error: expected primary-expression before ';' token
     for (int i = 0; i < N ;
                           ^
0_0_27000753_26057.cpp:16:27: error: expected ')' before ';' token
0_0_27000753_26057.cpp:17:7: error: 'i' was not declared in this scope
     ++i) {
       ^
0_0_27000753_26057.cpp: In function 'void init_unit()':
0_0_27000753_26057.cpp:5:11: error: expected primary-expression before '=' token
 #define N = 4;
           ^
0_0_27000753_26057.cpp:32:25: note: in expansion of macro 'N'
     for (int i = 0; i < N ;
                         ^
0_0_27000753_26057.cpp:32:27: error: expected primary-expression before ';' token
     for (int i = 0; i < N ;
                           ^
0_0_27000753_26057.cpp:32:27: error: expected ')' before ';' token
0_0_27000753_26057.cpp:33:7: error: 'i' was not declared in this scope
     ++i) {
       ^
0_0_27000753_26057.cpp: In function 'int main()':
0_0_27000753_26057.cpp:64:65: error: too many initializers for 'Matrix'
     Matrix rs = {0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -1, 1, 5, 1};
                                                                 ^
0_0_27000753_26057.cpp:67:35: error: 'pow_mat' was not declared in this scope
         Matrix tmp = pow_mat(rs, n);
                                   ^
0_0_27000753_26057.cpp:71:39: error: 'struct Matrix' has no member named 'm'
                 tmp2[i] += a[j] * tmp.m[i][j] % 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-17 10:44:12, Gzip enabled