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_30028617_4088.cpp:2:7: error: expected nested-name-specifier before 'nam'
 using nam//espace std;
       ^
0_0_30028617_4088.cpp:4:7: error: 'll' does not name a type
 const ll mod=1e9+7,N=50;
       ^
0_0_30028617_4088.cpp:5:1: error: 'll' does not name a type
 ll A,B,C,D,P,n;
 ^
0_0_30028617_4088.cpp:8:5: error: 'll' does not name a type
     ll m[4][4];
     ^
0_0_30028617_4088.cpp: In function 'mat operator*(mat, mat)':
0_0_30028617_4088.cpp:13:5: error: 'll' was not declared in this scope
     ll x;
     ^
0_0_30028617_4088.cpp:18:13: error: 'x' was not declared in this scope
             x=0;
             ^
0_0_30028617_4088.cpp:21:24: error: 'struct mat' has no member named 'm'
                 x=(x+a.m[i][k]*b.m[k][j]%mod)%mod;
                        ^
0_0_30028617_4088.cpp:21:34: error: 'struct mat' has no member named 'm'
                 x=(x+a.m[i][k]*b.m[k][j]%mod)%mod;
                                  ^
0_0_30028617_4088.cpp:21:42: error: 'mod' was not declared in this scope
                 x=(x+a.m[i][k]*b.m[k][j]%mod)%mod;
                                          ^
0_0_30028617_4088.cpp:23:17: error: 'struct mat' has no member named 'm'
             ret.m[i][j]=x;
                 ^
0_0_30028617_4088.cpp: In function 'void init()':
0_0_30028617_4088.cpp:30:32: error: 'struct mat' has no member named 'm'
     for(int i=0; i<3; i++)unit.m[i][i]=1;
                                ^
0_0_30028617_4088.cpp: At global scope:
0_0_30028617_4088.cpp:32:14: error: 'll' has not been declared
 mat qp(mat b,ll n)
              ^
0_0_30028617_4088.cpp: In function 'mat qp(mat, int)':
0_0_30028617_4088.cpp:35:14: error: 'struct mat' has no member named 'm'
     memset(a.m,0,sizeof a.m);
              ^
0_0_30028617_4088.cpp:35:27: error: 'struct mat' has no member named 'm'
     memset(a.m,0,sizeof a.m);
                           ^
0_0_30028617_4088.cpp:36:7: error: 'struct mat' has no member named 'm'
     a.m[0][0]=D; a.m[0][1]=C; a.m[0][2]=1;
       ^
0_0_30028617_4088.cpp:36:15: error: 'D' was not declared in this scope
     a.m[0][0]=D; a.m[0][1]=C; a.m[0][2]=1;
               ^
0_0_30028617_4088.cpp:36:20: error: 'struct mat' has no member named 'm'
     a.m[0][0]=D; a.m[0][1]=C; a.m[0][2]=1;
                    ^
0_0_30028617_4088.cpp:36:28: error: 'C' was not declared in this scope
     a.m[0][0]=D; a.m[0][1]=C; a.m[0][2]=1;
                            ^
0_0_30028617_4088.cpp:36:33: error: 'struct mat' has no member named 'm'
     a.m[0][0]=D; a.m[0][1]=C; a.m[0][2]=1;
                                 ^
0_0_30028617_4088.cpp:37:7: error: 'struct mat' has no member named 'm'
     a.m[1][0]=1; a.m[1][1]=0; a.m[0][2]=0;
       ^
0_0_30028617_4088.cpp:37:20: error: 'struct mat' has no member named 'm'
     a.m[1][0]=1; a.m[1][1]=0; a.m[0][2]=0;
                    ^
0_0_30028617_4088.cpp:37:33: error: 'struct mat' has no member named 'm'
     a.m[1][0]=1; a.m[1][1]=0; a.m[0][2]=0;
                                 ^
0_0_30028617_4088.cpp:38:7: error: 'struct mat' has no member named 'm'
     a.m[2][0]=0; a.m[2][1]=0; a.m[2][2]=1;
       ^
0_0_30028617_4088.cpp:38:20: error: 'struct mat' has no member named 'm'
     a.m[2][0]=0; a.m[2][1]=0; a.m[2][2]=1;
                    ^
0_0_30028617_4088.cpp:38:33: error: 'struct mat' has no member named 'm'
     a.m[2][0]=0; a.m[2][1]=0; a.m[2][2]=1;
                                 ^
0_0_30028617_4088.cpp: At global scope:
0_0_30028617_4088.cpp:51:1: error: 'll' does not name a type
 ll ans[N];
 ^
0_0_30028617_4088.cpp:52:1: error: 'll' does not name a type
 ll dt(ll n)
 ^
0_0_30028617_4088.cpp: In function 'int main()':
0_0_30028617_4088.cpp:69:48: error: 'A' was not declared in this scope
         scanf("%lld %lld %lld %lld %lld %lld",&A,&B,&C,&D,&P,&n);
                                                ^
0_0_30028617_4088.cpp:69:51: error: 'B' was not declared in this scope
         scanf("%lld %lld %lld %lld %lld %lld",&A,&B,&C,&D,&P,&n);
                                                   ^
0_0_30028617_4088.cpp:69:54: error: 'C' was not declared in this scope
         scanf("%lld %lld %lld %lld %lld %lld",&A,&B,&C,&D,&P,&n);
                                                      ^
0_0_30028617_4088.cpp:69:57: error: 'D' was not declared in this scope
         scanf("%lld %lld %lld %lld %lld %lld",&A,&B,&C,&D,&P,&n);
                                                         ^
0_0_30028617_4088.cpp:69:60: error: 'P' was not declared in this scope
         scanf("%lld %lld %lld %lld %lld %lld",&A,&B,&C,&D,&P,&n);
                                                            ^
0_0_30028617_4088.cpp:69:63: error: 'n' was not declared in this scope
         scanf("%lld %lld %lld %lld %lld %lld",&A,&B,&C,&D,&P,&n);
                                                               ^
0_0_30028617_4088.cpp:72:33: error: 'dt' was not declared in this scope
             printf("%lld\n",dt(n));
                                 ^
0_0_30028617_4088.cpp:75:25: error: 'struct mat' has no member named 'm'
         mat a; memset(a.m,0,sizeof a.m);
                         ^
0_0_30028617_4088.cpp:75:38: error: 'struct mat' has no member named 'm'
         mat a; memset(a.m,0,sizeof a.m);
                                      ^
0_0_30028617_4088.cpp:76:12: error: 'N' was not declared in this scope
         dt(N+2);
            ^
0_0_30028617_4088.cpp:76:15: error: 'dt' was not declared in this scope
         dt(N+2);
               ^
0_0_30028617_4088.cpp:77:9: error: 'll' was not declared in this scope
         ll x=N+2,y;
         ^
0_0_30028617_4088.cpp:78:11: error: 'ans' was not declared in this scope
         A=ans[x-2];
           ^
0_0_30028617_4088.cpp:78:15: error: 'x' was not declared in this scope
         A=ans[x-2];
               ^
0_0_30028617_4088.cpp:82:15: error: 'struct mat' has no member named 'm'
             a.m[0][0]=B;
               ^
0_0_30028617_4088.cpp:83:15: error: 'struct mat' has no member named 'm'
             a.m[1][0]=A;
               ^
0_0_30028617_4088.cpp:84:15: error: 'struct mat' has no member named 'm'
             a.m[2][0]=P/x;
               ^
0_0_30028617_4088.cpp:85:13: error: 'y' was not declared in this scope
             y=P/(P/x);
             ^
0_0_30028617_4088.cpp:87:13: error: 'cout' was not declared in this scope
             cout<<x<<' '<<y<<':'<<P/x<<endl;
             ^
0_0_30028617_4088.cpp:87:13: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
                 from 0_0_30028617_4088.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
0_0_30028617_4088.cpp:87:40: error: 'endl' was not declared in this scope
             cout<<x<<' '<<y<<':'<<P/x<<endl;
                                        ^
0_0_30028617_4088.cpp:87:40: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_30028617_4088.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^
0_0_30028617_4088.cpp:90:19: error: 'struct mat' has no member named 'm'
             B=res.m[0][0];
                   ^
0_0_30028617_4088.cpp:91:19: error: 'struct mat' has no member named 'm'
             A=res.m[1][0];
                   ^
0_0_30028617_4088.cpp:94:11: error: 'struct mat' has no member named 'm'
         a.m[0][0]=B;
           ^
0_0_30028617_4088.cpp:95:11: error: 'struct mat' has no member named 'm'
         a.m[1][0]=A;
           ^
0_0_30028617_4088.cpp:96:11: error: 'struct mat' has no member named 'm'
         a.m[2][0]=0;
           ^
0_0_30028617_4088.cpp:98:29: error: 'struct mat' has no member named 'm'
         printf("%lld\n",res.m[0][0]);
                             ^


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