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_14859418_12306.cpp:4:9: error: '_int64' does not name a type
 typedef _int64 LL;
         ^
0_0_14859418_12306.cpp:5:7: error: 'LL' does not name a type
 const LL MOD=1000000007;
       ^
0_0_14859418_12306.cpp:8:2: error: 'LL' does not name a type
  LL a[6][6];
  ^
0_0_14859418_12306.cpp:10:2: error: 'LL' does not name a type
  LL *operator[](int d) { return a[d]; }
  ^
0_0_14859418_12306.cpp: In constructor 'Mat::Mat()':
0_0_14859418_12306.cpp:9:17: error: 'a' was not declared in this scope
  Mat() { memset(a,0,sizeof(a)); }
                 ^
0_0_14859418_12306.cpp: In member function 'Mat Mat::operator*(Mat)':
0_0_14859418_12306.cpp:14:6: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
    (c[i][j]+=a[i][k]*b[k][j])%=MOD;
      ^
0_0_14859418_12306.cpp:14:14: error: 'a' was not declared in this scope
    (c[i][j]+=a[i][k]*b[k][j])%=MOD;
              ^
0_0_14859418_12306.cpp:14:23: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
    (c[i][j]+=a[i][k]*b[k][j])%=MOD;
                       ^
0_0_14859418_12306.cpp:14:32: error: 'MOD' was not declared in this scope
    (c[i][j]+=a[i][k]*b[k][j])%=MOD;
                                ^
0_0_14859418_12306.cpp: At global scope:
0_0_14859418_12306.cpp:19:1: error: 'LL' does not name a type
 LL n,a0,ax,ay,b0,bx,by;
 ^
0_0_14859418_12306.cpp: In function 'int main()':
0_0_14859418_12306.cpp:21:13: error: 'n' was not declared in this scope
  for (;cin>>n>>a0>>ax>>ay>>b0>>bx>>by;) {//~scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&a0,&ax,&ay,&b0,&bx,&by);) {
             ^
0_0_14859418_12306.cpp:21:16: error: 'a0' was not declared in this scope
  for (;cin>>n>>a0>>ax>>ay>>b0>>bx>>by;) {//~scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&a0,&ax,&ay,&b0,&bx,&by);) {
                ^
0_0_14859418_12306.cpp:21:20: error: 'ax' was not declared in this scope
  for (;cin>>n>>a0>>ax>>ay>>b0>>bx>>by;) {//~scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&a0,&ax,&ay,&b0,&bx,&by);) {
                    ^
0_0_14859418_12306.cpp:21:24: error: 'ay' was not declared in this scope
  for (;cin>>n>>a0>>ax>>ay>>b0>>bx>>by;) {//~scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&a0,&ax,&ay,&b0,&bx,&by);) {
                        ^
0_0_14859418_12306.cpp:21:28: error: 'b0' was not declared in this scope
  for (;cin>>n>>a0>>ax>>ay>>b0>>bx>>by;) {//~scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&a0,&ax,&ay,&b0,&bx,&by);) {
                            ^
0_0_14859418_12306.cpp:21:32: error: 'bx' was not declared in this scope
  for (;cin>>n>>a0>>ax>>ay>>b0>>bx>>by;) {//~scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&a0,&ax,&ay,&b0,&bx,&by);) {
                                ^
0_0_14859418_12306.cpp:21:36: error: 'by' was not declared in this scope
  for (;cin>>n>>a0>>ax>>ay>>b0>>bx>>by;) {//~scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&a0,&ax,&ay,&b0,&bx,&by);) {
                                    ^
0_0_14859418_12306.cpp:31:4: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[1][1]=ax; a[1][5]=ay;
    ^
0_0_14859418_12306.cpp:31:16: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[1][1]=ax; a[1][5]=ay;
                ^
0_0_14859418_12306.cpp:32:4: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[2][2]=bx; a[2][5]=by;
    ^
0_0_14859418_12306.cpp:32:16: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[2][2]=bx; a[2][5]=by;
                ^
0_0_14859418_12306.cpp:33:4: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[3][1]=ax*by; a[3][2]=ay*bx; a[3][3]=ax*bx; a[3][5]=ay*by;
    ^
0_0_14859418_12306.cpp:33:19: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[3][1]=ax*by; a[3][2]=ay*bx; a[3][3]=ax*bx; a[3][5]=ay*by;
                   ^
0_0_14859418_12306.cpp:33:34: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[3][1]=ax*by; a[3][2]=ay*bx; a[3][3]=ax*bx; a[3][5]=ay*by;
                                  ^
0_0_14859418_12306.cpp:33:49: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[3][1]=ax*by; a[3][2]=ay*bx; a[3][3]=ax*bx; a[3][5]=ay*by;
                                                 ^
0_0_14859418_12306.cpp:34:4: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[4][3]=1; a[4][4]=1;
    ^
0_0_14859418_12306.cpp:34:15: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[4][3]=1; a[4][4]=1;
               ^
0_0_14859418_12306.cpp:35:4: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   a[5][5]=1;
    ^
0_0_14859418_12306.cpp:36:28: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   FOR (i,1,5) FOR (j,1,5) a[i][j]%=MOD;
                            ^
0_0_14859418_12306.cpp:36:36: error: 'MOD' was not declared in this scope
   FOR (i,1,5) FOR (j,1,5) a[i][j]%=MOD;
                                    ^
0_0_14859418_12306.cpp:39:27: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   Mat pdt; FOR (i,1,5) pdt[i][i]=1;
                           ^
0_0_14859418_12306.cpp:43:3: error: 'LL' was not declared in this scope
   LL ans=0,mm[6]={0,a0,b0,a0*b0,0,1};
   ^
0_0_14859418_12306.cpp:44:15: error: 'mm' was not declared in this scope
   FOR (i,1,5) mm[i]%=MOD;
               ^
0_0_14859418_12306.cpp:44:22: error: 'MOD' was not declared in this scope
   FOR (i,1,5) mm[i]%=MOD;
                      ^
0_0_14859418_12306.cpp:45:16: error: 'ans' was not declared in this scope
   FOR (i,1,5) (ans+=pdt[4][i]*mm[i])%MOD;
                ^
0_0_14859418_12306.cpp:45:24: error: no match for 'operator[]' (operand types are 'Mat' and 'int')
   FOR (i,1,5) (ans+=pdt[4][i]*mm[i])%MOD;
                        ^
0_0_14859418_12306.cpp:45:31: error: 'mm' was not declared in this scope
   FOR (i,1,5) (ans+=pdt[4][i]*mm[i])%MOD;
                               ^
0_0_14859418_12306.cpp:45:38: error: 'MOD' was not declared in this scope
   FOR (i,1,5) (ans+=pdt[4][i]*mm[i])%MOD;
                                      ^
0_0_14859418_12306.cpp:46:9: error: 'ans' was not declared in this scope
   cout<<ans<<endl;//printf("%lld\n",ans);
         ^


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-07-04 16:55:00, Gzip enabled