0_0_21884196_1630.cpp:11:9: error: 'vector' does not name a type
typedef vector<long long> VI;
^
0_0_21884196_1630.cpp:13:9: error: 'pair' does not name a type
typedef pair<long long,long long> PII;
^
0_0_21884196_1630.cpp: In function 'll powmod(ll, ll)':
0_0_21884196_1630.cpp:15:51: error: 'assert' was not declared in this scope
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
^
0_0_21884196_1630.cpp: At global scope:
0_0_21884196_1630.cpp:24:5: error: 'vector' does not name a type
vector<long long> Md;
^
0_0_21884196_1630.cpp: In function 'void linear_seq::mul(ll*, ll*, long long int)':
0_0_21884196_1630.cpp:31:24: error: 'Md' was not declared in this scope
rep(j,0,SZ(Md)) _c[i-k+Md[j]]=(_c[i-k+Md[j]]-_c[i]*_md[Md[j]])%mod;
^
0_0_21884196_1630.cpp:3:41: note: in definition of macro 'rep'
#define rep(i,a,n) for (long long i=a;i<n;i++)
^
0_0_21884196_1630.cpp:31:21: note: in expansion of macro 'SZ'
rep(j,0,SZ(Md)) _c[i-k+Md[j]]=(_c[i-k+Md[j]]-_c[i]*_md[Md[j]])%mod;
^
0_0_21884196_1630.cpp: At global scope:
0_0_21884196_1630.cpp:34:26: error: 'VI' has not been declared
long long solve(ll n,VI a,VI b)
^
0_0_21884196_1630.cpp:34:31: error: 'VI' has not been declared
long long solve(ll n,VI a,VI b)
^
0_0_21884196_1630.cpp: In function 'long long int linear_seq::solve(ll, int, int)':
0_0_21884196_1630.cpp:10:31: error: request for member 'size' in 'a', which is of non-class type 'int'
#define SZ(x) ((long long)(x).size())
^
0_0_21884196_1630.cpp:38:21: note: in expansion of macro 'SZ'
long long k=SZ(a);
^
0_0_21884196_1630.cpp:10:31: error: request for member 'size' in 'a', which is of non-class type 'int'
#define SZ(x) ((long long)(x).size())
^
0_0_21884196_1630.cpp:39:16: note: in expansion of macro 'SZ'
assert(SZ(a)==SZ(b));
^
0_0_21884196_1630.cpp:10:31: error: request for member 'size' in 'b', which is of non-class type 'int'
#define SZ(x) ((long long)(x).size())
^
0_0_21884196_1630.cpp:39:23: note: in expansion of macro 'SZ'
assert(SZ(a)==SZ(b));
^
0_0_21884196_1630.cpp:39:28: error: 'assert' was not declared in this scope
assert(SZ(a)==SZ(b));
^
0_0_21884196_1630.cpp:40:35: error: invalid types 'int[long long int]' for array subscript
rep(i,0,k) _md[k-1-i]=-a[i];_md[k]=1;
^
0_0_21884196_1630.cpp:41:9: error: 'Md' was not declared in this scope
Md.clear();
^
0_0_21884196_1630.cpp:55:39: error: invalid types 'int[long long int]' for array subscript
rep(i,0,k) ans=(ans+res[i]*b[i])%mod;
^
0_0_21884196_1630.cpp: At global scope:
0_0_21884196_1630.cpp:59:5: error: 'VI' does not name a type
VI BM(VI s)
^
0_0_21884196_1630.cpp:86:19: error: 'VI' was not declared in this scope
long long gao(VI a,ll n)
^
0_0_21884196_1630.cpp:86:27: error: expected primary-expression before 'n'
long long gao(VI a,ll n)
^
0_0_21884196_1630.cpp:86:28: error: expression list treated as compound expression in initializer [-fpermissive]
long long gao(VI a,ll n)
^
0_0_21884196_1630.cpp:87:5: error: expected ',' or ';' before '{' token
{
^
0_0_21884196_1630.cpp: In function 'int main()':
0_0_21884196_1630.cpp:97:26: error: 'scanf' was not declared in this scope
for (scanf("%I64d",&_);_;_--)
^
0_0_21884196_1630.cpp:100:42: error: 'VI' was not declared in this scope
printf("%I64d\n",linear_seq::gao(VI{31,197,1255,7997},n-2));
^
0_0_21884196_1630.cpp:100:66: error: 'linear_seq::gao' cannot be used as a function
printf("%I64d\n",linear_seq::gao(VI{31,197,1255,7997},n-2));
^
0_0_21884196_1630.cpp:100:67: error: 'printf' was not declared in this scope
printf("%I64d\n",linear_seq::gao(VI{31,197,1255,7997},n-2));
^
|