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_26090751_31429.cpp:20:16: error: 'll' was not declared in this scope
 typedef vector<ll> VI;
                ^
0_0_26090751_31429.cpp:20:18: error: template argument 1 is invalid
 typedef vector<ll> VI;
                  ^
0_0_26090751_31429.cpp:20:18: error: template argument 2 is invalid
0_0_26090751_31429.cpp:20:22: error: invalid type in declaration before ';' token
 typedef vector<ll> VI;
                      ^
0_0_26090751_31429.cpp: In function 'int linear_seq::solve(ll, VI, VI)':
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 'a', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:43:15: note: in expansion of macro 'SZ'
         int k=SZ(a);
               ^
0_0_26090751_31429.cpp:45:35: error: invalid types 'VI {aka int}[int]' for array subscript
         rep(i,0,k) _md[k-1-i]=-a[i];_md[k]=1;
                                   ^
0_0_26090751_31429.cpp:58:39: error: invalid types 'VI {aka int}[int]' for array subscript
         rep(i,0,k) ans=(ans+res[i]*b[i])%mod;
                                       ^
0_0_26090751_31429.cpp: In function 'VI linear_seq::BM(VI)':
0_0_26090751_31429.cpp:63:17: error: expression list treated as compound expression in initializer [-fpermissive]
         VI C(1,1),B(1,1);
                 ^
0_0_26090751_31429.cpp:63:24: error: expression list treated as compound expression in initializer [-fpermissive]
         VI C(1,1),B(1,1);
                        ^
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 's', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:12:35: note: in definition of macro 'rep'
 #define rep(i,a,n) for (int i=a;i<n;i++)
                                   ^
0_0_26090751_31429.cpp:65:17: note: in expansion of macro 'SZ'
         rep(n,0,SZ(s)) {
                 ^
0_0_26090751_31429.cpp:67:38: error: invalid types 'VI {aka int}[int]' for array subscript
             rep(i,0,L+1) d=(d+(ll)C[i]*s[n-i])%mod;
                                      ^
0_0_26090751_31429.cpp:67:45: error: invalid types 'VI {aka int}[int]' for array subscript
             rep(i,0,L+1) d=(d+(ll)C[i]*s[n-i])%mod;
                                             ^
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 'C', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:72:24: note: in expansion of macro 'SZ'
                 while (SZ(C)<SZ(B)+m) C.pb(0);
                        ^
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 'B', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:72:30: note: in expansion of macro 'SZ'
                 while (SZ(C)<SZ(B)+m) C.pb(0);
                              ^
0_0_26090751_31429.cpp:14:12: error: request for member 'push_back' in 'C', which is of non-class type 'VI {aka int}'
 #define pb push_back
            ^
0_0_26090751_31429.cpp:72:41: note: in expansion of macro 'pb'
                 while (SZ(C)<SZ(B)+m) C.pb(0);
                                         ^
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 'B', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:12:35: note: in definition of macro 'rep'
 #define rep(i,a,n) for (int i=a;i<n;i++)
                                   ^
0_0_26090751_31429.cpp:73:25: note: in expansion of macro 'SZ'
                 rep(i,0,SZ(B)) C[i+m]=(C[i+m]+c*B[i])%mod;
                         ^
0_0_26090751_31429.cpp:73:37: error: invalid types 'VI {aka int}[int]' for array subscript
                 rep(i,0,SZ(B)) C[i+m]=(C[i+m]+c*B[i])%mod;
                                     ^
0_0_26090751_31429.cpp:73:45: error: invalid types 'VI {aka int}[int]' for array subscript
                 rep(i,0,SZ(B)) C[i+m]=(C[i+m]+c*B[i])%mod;
                                             ^
0_0_26090751_31429.cpp:73:52: error: invalid types 'VI {aka int}[int]' for array subscript
                 rep(i,0,SZ(B)) C[i+m]=(C[i+m]+c*B[i])%mod;
                                                    ^
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 'C', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:77:24: note: in expansion of macro 'SZ'
                 while (SZ(C)<SZ(B)+m) C.pb(0);
                        ^
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 'B', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:77:30: note: in expansion of macro 'SZ'
                 while (SZ(C)<SZ(B)+m) C.pb(0);
                              ^
0_0_26090751_31429.cpp:14:12: error: request for member 'push_back' in 'C', which is of non-class type 'VI {aka int}'
 #define pb push_back
            ^
0_0_26090751_31429.cpp:77:41: note: in expansion of macro 'pb'
                 while (SZ(C)<SZ(B)+m) C.pb(0);
                                         ^
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 'B', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:12:35: note: in definition of macro 'rep'
 #define rep(i,a,n) for (int i=a;i<n;i++)
                                   ^
0_0_26090751_31429.cpp:78:25: note: in expansion of macro 'SZ'
                 rep(i,0,SZ(B)) C[i+m]=(C[i+m]+c*B[i])%mod;
                         ^
0_0_26090751_31429.cpp:78:37: error: invalid types 'VI {aka int}[int]' for array subscript
                 rep(i,0,SZ(B)) C[i+m]=(C[i+m]+c*B[i])%mod;
                                     ^
0_0_26090751_31429.cpp:78:45: error: invalid types 'VI {aka int}[int]' for array subscript
                 rep(i,0,SZ(B)) C[i+m]=(C[i+m]+c*B[i])%mod;
                                             ^
0_0_26090751_31429.cpp:78:52: error: invalid types 'VI {aka int}[int]' for array subscript
                 rep(i,0,SZ(B)) C[i+m]=(C[i+m]+c*B[i])%mod;
                                                    ^
0_0_26090751_31429.cpp: In function 'void linear_seq::init(VI)':
0_0_26090751_31429.cpp:88:14: error: request for member 'erase' in 'linear_seq::temp', which is of non-class type 'VI {aka int}'
         temp.erase(temp.begin());
              ^
0_0_26090751_31429.cpp:88:25: error: request for member 'begin' in 'linear_seq::temp', which is of non-class type 'VI {aka int}'
         temp.erase(temp.begin());
                         ^
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 'linear_seq::temp', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:12:35: note: in definition of macro 'rep'
 #define rep(i,a,n) for (int i=a;i<n;i++)
                                   ^
0_0_26090751_31429.cpp:89:17: note: in expansion of macro 'SZ'
         rep(i,0,SZ(temp))temp[i]=(mod-temp[i])%mod;
                 ^
0_0_26090751_31429.cpp:89:32: error: invalid types 'VI {aka int}[int]' for array subscript
         rep(i,0,SZ(temp))temp[i]=(mod-temp[i])%mod;
                                ^
0_0_26090751_31429.cpp:89:45: error: invalid types 'VI {aka int}[int]' for array subscript
         rep(i,0,SZ(temp))temp[i]=(mod-temp[i])%mod;
                                             ^
0_0_26090751_31429.cpp: In function 'int linear_seq::gao(VI, ll)':
0_0_26090751_31429.cpp:92:34: error: request for member 'begin' in 'a', which is of non-class type 'VI {aka int}'
         return solve(n,temp,VI(a.begin(),a.begin()+SZ(temp)));
                                  ^
0_0_26090751_31429.cpp:92:44: error: request for member 'begin' in 'a', which is of non-class type 'VI {aka int}'
         return solve(n,temp,VI(a.begin(),a.begin()+SZ(temp)));
                                            ^
0_0_26090751_31429.cpp:19:25: error: request for member 'size' in 'linear_seq::temp', which is of non-class type 'VI {aka int}'
 #define SZ(x) ((int)(x).size())
                         ^
0_0_26090751_31429.cpp:92:52: note: in expansion of macro 'SZ'
         return solve(n,temp,VI(a.begin(),a.begin()+SZ(temp)));
                                                    ^
0_0_26090751_31429.cpp:92:60: error: expression list treated as compound expression in functional cast [-fpermissive]
         return solve(n,temp,VI(a.begin(),a.begin()+SZ(temp)));
                                                            ^
0_0_26090751_31429.cpp: In function 'int main()':
0_0_26090751_31429.cpp:102:25: error: cannot convert 'std::vector<long long int>' to 'VI {aka int}' for argument '1' to 'void linear_seq::init(VI)'
     linear_seq::init(num);
                         ^
0_0_26090751_31429.cpp:109:46: error: cannot convert 'std::vector<long long int>' to 'VI {aka int}' for argument '1' to 'int linear_seq::gao(VI, ll)'
         printf("%d\n",linear_seq::gao(num,n-2));
                                              ^


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 21:57:00, Gzip enabled