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_34675498_6811.cpp:18:3: error: 'a' does not name a type
   a[N][N];
   ^
0_0_34675498_6811.cpp: In constructor 'Matrix::Matrix(int)':
0_0_34675498_6811.cpp:20:17: error: 'a' was not declared in this scope
          memset(a, 0, sizeof(a));
                 ^
0_0_34675498_6811.cpp: In member function 'void Matrix::operator~()':
0_0_34675498_6811.cpp:25:13: error: 'a' was not declared in this scope
             a[i][i] = 1;
             ^
0_0_34675498_6811.cpp: In member function 'Matrix Matrix::operator+(const Matrix&) const':
0_0_34675498_6811.cpp:32:21: error: 'struct Matrix' has no member named 'a'
                 ret.a[i][j] = (a[i][j] + b.a[i][j]) % Mo;
                     ^
0_0_34675498_6811.cpp:32:32: error: 'a' was not declared in this scope
                 ret.a[i][j] = (a[i][j] + b.a[i][j]) % Mo;
                                ^
0_0_34675498_6811.cpp:32:44: error: 'const struct Matrix' has no member named 'a'
                 ret.a[i][j] = (a[i][j] + b.a[i][j]) % Mo;
                                            ^
0_0_34675498_6811.cpp: In member function 'Matrix Matrix::operator-(const Matrix&) const':
0_0_34675498_6811.cpp:40:21: error: 'struct Matrix' has no member named 'a'
                 ret.a[i][j] = (a[i][j] - b.a[i][j] + Mo) % Mo;
                     ^
0_0_34675498_6811.cpp:40:32: error: 'a' was not declared in this scope
                 ret.a[i][j] = (a[i][j] - b.a[i][j] + Mo) % Mo;
                                ^
0_0_34675498_6811.cpp:40:44: error: 'const struct Matrix' has no member named 'a'
                 ret.a[i][j] = (a[i][j] - b.a[i][j] + Mo) % Mo;
                                            ^
0_0_34675498_6811.cpp: In member function 'Matrix Matrix::operator*(const Matrix&) const':
0_0_34675498_6811.cpp:49:25: error: 'struct Matrix' has no member named 'a'
                     ret.a[i][k] = (ret.a[i][k] + 1LL * a[i][j] * b.a[j][k] % Mo + Mo) % Mo;
                         ^
0_0_34675498_6811.cpp:49:40: error: 'struct Matrix' has no member named 'a'
                     ret.a[i][k] = (ret.a[i][k] + 1LL * a[i][j] * b.a[j][k] % Mo + Mo) % Mo;
                                        ^
0_0_34675498_6811.cpp:49:56: error: 'a' was not declared in this scope
                     ret.a[i][k] = (ret.a[i][k] + 1LL * a[i][j] * b.a[j][k] % Mo + Mo) % Mo;
                                                        ^
0_0_34675498_6811.cpp:49:68: error: 'const struct Matrix' has no member named 'a'
                     ret.a[i][k] = (ret.a[i][k] + 1LL * a[i][j] * b.a[j][k] % Mo + Mo) % Mo;
                                                                    ^
0_0_34675498_6811.cpp: In function 'int main()':
0_0_34675498_6811.cpp:69:8: error: 'struct Matrix' has no member named 'a'
    ans.a[0][1] = ans.a[0][2] = ans.a[0][3] = ans.a[2][2] = ans.a[2][3] = ans.a[3][2] = 0;
        ^
0_0_34675498_6811.cpp:69:22: error: 'struct Matrix' has no member named 'a'
    ans.a[0][1] = ans.a[0][2] = ans.a[0][3] = ans.a[2][2] = ans.a[2][3] = ans.a[3][2] = 0;
                      ^
0_0_34675498_6811.cpp:69:36: error: 'struct Matrix' has no member named 'a'
    ans.a[0][1] = ans.a[0][2] = ans.a[0][3] = ans.a[2][2] = ans.a[2][3] = ans.a[3][2] = 0;
                                    ^
0_0_34675498_6811.cpp:69:50: error: 'struct Matrix' has no member named 'a'
    ans.a[0][1] = ans.a[0][2] = ans.a[0][3] = ans.a[2][2] = ans.a[2][3] = ans.a[3][2] = 0;
                                                  ^
0_0_34675498_6811.cpp:69:64: error: 'struct Matrix' has no member named 'a'
    ans.a[0][1] = ans.a[0][2] = ans.a[0][3] = ans.a[2][2] = ans.a[2][3] = ans.a[3][2] = 0;
                                                                ^
0_0_34675498_6811.cpp:69:78: error: 'struct Matrix' has no member named 'a'
    ans.a[0][1] = ans.a[0][2] = ans.a[0][3] = ans.a[2][2] = ans.a[2][3] = ans.a[3][2] = 0;
                                                                              ^
0_0_34675498_6811.cpp:70:8: error: 'struct Matrix' has no member named 'a'
    ans.a[0][0] = ans.a[1][2] = 1;
        ^
0_0_34675498_6811.cpp:70:22: error: 'struct Matrix' has no member named 'a'
    ans.a[0][0] = ans.a[1][2] = 1;
                      ^
0_0_34675498_6811.cpp:71:8: error: 'struct Matrix' has no member named 'a'
    ans.a[1][0] = ans.a[1][1] = x * x % Mo;
        ^
0_0_34675498_6811.cpp:71:22: error: 'struct Matrix' has no member named 'a'
    ans.a[1][0] = ans.a[1][1] = x * x % Mo;
                      ^
0_0_34675498_6811.cpp:72:8: error: 'struct Matrix' has no member named 'a'
    ans.a[2][0] = ans.a[2][1] = y * y % Mo;
        ^
0_0_34675498_6811.cpp:72:22: error: 'struct Matrix' has no member named 'a'
    ans.a[2][0] = ans.a[2][1] = y * y % Mo;
                      ^
0_0_34675498_6811.cpp:73:8: error: 'struct Matrix' has no member named 'a'
    ans.a[3][0] = ans.a[3][1] = 2LL * x * y % Mo;
        ^
0_0_34675498_6811.cpp:73:22: error: 'struct Matrix' has no member named 'a'
    ans.a[3][0] = ans.a[3][1] = 2LL * x * y % Mo;
                      ^
0_0_34675498_6811.cpp:74:8: error: 'struct Matrix' has no member named 'a'
    ans.a[1][3] = x % Mo;
        ^
0_0_34675498_6811.cpp:75:8: error: 'struct Matrix' has no member named 'a'
    ans.a[3][3] = y % Mo;
        ^
0_0_34675498_6811.cpp:77:24: error: 'struct Matrix' has no member named 'a'
    printf("%d\n", (ans.a[0][0] * 2LL % Mo + ans.a[1][0] + ans.a[2][0] + ans.a[3][0]) % Mo);
                        ^
0_0_34675498_6811.cpp:77:49: error: 'struct Matrix' has no member named 'a'
    printf("%d\n", (ans.a[0][0] * 2LL % Mo + ans.a[1][0] + ans.a[2][0] + ans.a[3][0]) % Mo);
                                                 ^
0_0_34675498_6811.cpp:77:63: error: 'struct Matrix' has no member named 'a'
    printf("%d\n", (ans.a[0][0] * 2LL % Mo + ans.a[1][0] + ans.a[2][0] + ans.a[3][0]) % Mo);
                                                               ^
0_0_34675498_6811.cpp:77:77: error: 'struct Matrix' has no member named 'a'
    printf("%d\n", (ans.a[0][0] * 2LL % Mo + ans.a[1][0] + ans.a[2][0] + ans.a[3][0]) % Mo);
                                                                             ^


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:28:41, Gzip enabled