0_0_27879676_25701\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_27879676_25701\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
^
0_0_27879676_25701\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_27879676_25701\Main.java:3: 错误: 非法字符: '#'
#include <cmath>
^
0_0_27879676_25701\Main.java:4: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_27879676_25701\Main.java:5: 错误: 非法字符: '#'
#include <vector>
^
0_0_27879676_25701\Main.java:6: 错误: 非法字符: '#'
#include <string>
^
0_0_27879676_25701\Main.java:7: 错误: 非法字符: '#'
#include <map>
^
0_0_27879676_25701\Main.java:8: 错误: 非法字符: '#'
#include <set>
^
0_0_27879676_25701\Main.java:9: 错误: 非法字符: '#'
#include <cassert>
^
0_0_27879676_25701\Main.java:10: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_27879676_25701\Main.java:12: 错误: 非法字符: '#'
#define rep(i,a,n) for (int i=a;i<n;i++)
^
0_0_27879676_25701\Main.java:12: 错误: 需要class, interface或enum
#define rep(i,a,n) for (int i=a;i<n;i++)
^
0_0_27879676_25701\Main.java:12: 错误: 需要class, interface或enum
#define rep(i,a,n) for (int i=a;i<n;i++)
^
0_0_27879676_25701\Main.java:12: 错误: 需要class, interface或enum
#define rep(i,a,n) for (int i=a;i<n;i++)
^
0_0_27879676_25701\Main.java:13: 错误: 非法字符: '#'
#define per(i,a,n) for (int i=n-1;i>=a;i--)
^
0_0_27879676_25701\Main.java:13: 错误: 需要class, interface或enum
#define per(i,a,n) for (int i=n-1;i>=a;i--)
^
0_0_27879676_25701\Main.java:13: 错误: 需要class, interface或enum
#define per(i,a,n) for (int i=n-1;i>=a;i--)
^
0_0_27879676_25701\Main.java:14: 错误: 非法字符: '#'
#define pb push_back
^
0_0_27879676_25701\Main.java:15: 错误: 非法字符: '#'
#define mp make_pair
^
0_0_27879676_25701\Main.java:16: 错误: 非法字符: '#'
#define all(x) (x).begin(),(x).end()
^
0_0_27879676_25701\Main.java:17: 错误: 非法字符: '#'
#define fi first
^
0_0_27879676_25701\Main.java:18: 错误: 非法字符: '#'
#define se second
^
0_0_27879676_25701\Main.java:19: 错误: 非法字符: '#'
#define SZ(x) ((int)(x).size())
^
0_0_27879676_25701\Main.java:21: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_27879676_25701\Main.java:22: 错误: 需要class, interface或enum
typedef pair<int,int> PII;
^
0_0_27879676_25701\Main.java:23: 错误: 需要class, interface或enum
const ll mod=1e9+7;
^
0_0_27879676_25701\Main.java:24: 错误: 需要class, interface或enum
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_27879676_25701\Main.java:24: 错误: 需要class, interface或enum
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_27879676_25701\Main.java:24: 错误: 从发行版 1.4 开始, 'assert' 是一个关键字, 但不能用作标识符
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;}
^
(请使用 -source 1.3 或更低版本以将 'assert' 用作标识符)
0_0_27879676_25701\Main.java:24: 错误: 需要class, interface或enum
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_27879676_25701\Main.java:24: 错误: 需要class, interface或enum
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_27879676_25701\Main.java:24: 错误: 需要class, interface或enum
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_27879676_25701\Main.java:24: 错误: 需要class, interface或enum
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_27879676_25701\Main.java:24: 错误: 需要class, interface或enum
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_27879676_25701\Main.java:24: 错误: 需要class, interface或enum
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_27879676_25701\Main.java:27: 错误: 需要class, interface或enum
namespace linear_seq {
^
0_0_27879676_25701\Main.java:29: 错误: 需要class, interface或enum
ll res[N],base[N],_c[N],_md[N];
^
0_0_27879676_25701\Main.java:31: 错误: 需要class, interface或enum
vector<int> Md;
^
0_0_27879676_25701\Main.java:32: 错误: 需要class, interface或enum
void mul(ll *a,ll *b,int k) {
^
0_0_27879676_25701\Main.java:34: 错误: 需要class, interface或enum
rep(i,0,k) if (a[i]) rep(j,0,k) _c[i+j]=(_c[i+j]+a[i]*b[j])%mod;
^
0_0_27879676_25701\Main.java:35: 错误: 需要class, interface或enum
for (int i=k+k-1;i>=k;i--) if (_c[i])
^
0_0_27879676_25701\Main.java:35: 错误: 需要class, interface或enum
for (int i=k+k-1;i>=k;i--) if (_c[i])
^
0_0_27879676_25701\Main.java:35: 错误: 需要class, interface或enum
for (int i=k+k-1;i>=k;i--) if (_c[i])
^
0_0_27879676_25701\Main.java:37: 错误: 需要class, interface或enum
rep(i,0,k) a[i]=_c[i];
^
0_0_27879676_25701\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_27879676_25701\Main.java:42: 错误: 需要class, interface或enum
int k=SZ(a);
^
0_0_27879676_25701\Main.java:43: 错误: 从发行版 1.4 开始, 'assert' 是一个关键字, 但不能用作标识符
assert(SZ(a)==SZ(b));
^
(请使用 -source 1.3 或更低版本以将 'assert' 用作标识符)
0_0_27879676_25701\Main.java:44: 错误: 需要class, interface或enum
rep(i,0,k) _md[k-1-i]=-a[i];_md[k]=1;
^
0_0_27879676_25701\Main.java:44: 错误: 需要class, interface或enum
rep(i,0,k) _md[k-1-i]=-a[i];_md[k]=1;
^
0_0_27879676_25701\Main.java:45: 错误: 需要class, interface或enum
Md.clear();
^
0_0_27879676_25701\Main.java:46: 错误: 需要class, interface或enum
rep(i,0,k) if (_md[i]!=0) Md.push_back(i);
^
0_0_27879676_25701\Main.java:47: 错误: 需要class, interface或enum
rep(i,0,k) res[i]=base[i]=0;
^
0_0_27879676_25701\Main.java:48: 错误: 需要class, interface或enum
res[0]=1;
^
0_0_27879676_25701\Main.java:49: 错误: 需要class, interface或enum
while ((1ll<<pnt)<=n) pnt++;
^
0_0_27879676_25701\Main.java:50: 错误: 需要class, interface或enum
for (int p=pnt;p>=0;p--) {
^
0_0_27879676_25701\Main.java:50: 错误: 需要class, interface或enum
for (int p=pnt;p>=0;p--) {
^
0_0_27879676_25701\Main.java:50: 错误: 需要class, interface或enum
for (int p=pnt;p>=0;p--) {
^
0_0_27879676_25701\Main.java:52: 错误: 需要class, interface或enum
if ((n>>p)&1) {
^
0_0_27879676_25701\Main.java:53: 错误: 需要class, interface或enum
for (int i=k-1;i>=0;i--) res[i+1]=res[i];res[0]=0;
^
0_0_27879676_25701\Main.java:53: 错误: 需要class, interface或enum
for (int i=k-1;i>=0;i--) res[i+1]=res[i];res[0]=0;
^
0_0_27879676_25701\Main.java:53: 错误: 需要class, interface或enum
for (int i=k-1;i>=0;i--) res[i+1]=res[i];res[0]=0;
^
0_0_27879676_25701\Main.java:54: 错误: 需要class, interface或enum
rep(j,0,SZ(Md)) res[Md[j]]=(res[Md[j]]-res[k]*_md[Md[j]])%mod;
^
0_0_27879676_25701\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_27879676_25701\Main.java:58: 错误: 需要class, interface或enum
if (ans<0) ans+=mod;
^
0_0_27879676_25701\Main.java:59: 错误: 需要class, interface或enum
return ans;
^
0_0_27879676_25701\Main.java:60: 错误: 需要class, interface或enum
}
^
0_0_27879676_25701\Main.java:63: 错误: 需要class, interface或enum
int L=0,m=1,b=1;
^
0_0_27879676_25701\Main.java:64: 错误: 需要class, interface或enum
rep(n,0,SZ(s)) {
^
0_0_27879676_25701\Main.java:66: 错误: 需要class, interface或enum
rep(i,0,L+1) d=(d+(ll)C[i]*s[n-i])%mod;
^
0_0_27879676_25701\Main.java:67: 错误: 需要class, interface或enum
if (d==0) ++m;
^
0_0_27879676_25701\Main.java:68: 错误: 需要class, interface或enum
else if (2*L<=n) {
^
0_0_27879676_25701\Main.java:70: 错误: 需要class, interface或enum
ll c=mod-d*powmod(b,mod-2)%mod;
^
0_0_27879676_25701\Main.java:71: 错误: 需要class, interface或enum
while (SZ(C)<SZ(B)+m) C.pb(0);
^
0_0_27879676_25701\Main.java:72: 错误: 需要class, interface或enum
rep(i,0,SZ(B)) C[i+m]=(
|