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_22501195_10930\Main.java:2: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_22501195_10930\Main.java:2: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_22501195_10930\Main.java:5: 错误: 非法字符: '#'
#define rep(i,a,n) for (int i=a;i<n;i++)
^
0_0_22501195_10930\Main.java:5: 错误: 需要class, interface或enum
#define rep(i,a,n) for (int i=a;i<n;i++)
        ^
0_0_22501195_10930\Main.java:5: 错误: 需要class, interface或enum
#define rep(i,a,n) for (int i=a;i<n;i++)
                                ^
0_0_22501195_10930\Main.java:5: 错误: 需要class, interface或enum
#define rep(i,a,n) for (int i=a;i<n;i++)
                                    ^
0_0_22501195_10930\Main.java:6: 错误: 非法字符: '#'
#define per(i,a,n) for (int i=n-1;i>=a;i--)
^
0_0_22501195_10930\Main.java:6: 错误: 需要class, interface或enum
#define per(i,a,n) for (int i=n-1;i>=a;i--)
                                  ^
0_0_22501195_10930\Main.java:6: 错误: 需要class, interface或enum
#define per(i,a,n) for (int i=n-1;i>=a;i--)
                                       ^
0_0_22501195_10930\Main.java:7: 错误: 非法字符: '#'
#define pb push_back
^
0_0_22501195_10930\Main.java:8: 错误: 非法字符: '#'
#define mp make_pair
^
0_0_22501195_10930\Main.java:9: 错误: 非法字符: '#'
#define all(x) (x).begin(),(x).end()
^
0_0_22501195_10930\Main.java:10: 错误: 非法字符: '#'
#define fi first
^
0_0_22501195_10930\Main.java:11: 错误: 非法字符: '#'
#define se second
^
0_0_22501195_10930\Main.java:12: 错误: 非法字符: '#'
#define SZ(x) ((int)(x).size())
^
0_0_22501195_10930\Main.java:14: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_22501195_10930\Main.java:15: 错误: 需要class, interface或enum
typedef pair<int,int> PII;
^
0_0_22501195_10930\Main.java:16: 错误: 需要class, interface或enum
const ll mod=1000000007;
^
0_0_22501195_10930\Main.java:17: 错误: 需要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_22501195_10930\Main.java:17: 错误: 需要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_22501195_10930\Main.java:17: 错误: 从发行版 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_22501195_10930\Main.java:17: 错误: 需要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_22501195_10930\Main.java:17: 错误: 需要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_22501195_10930\Main.java:17: 错误: 需要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_22501195_10930\Main.java:17: 错误: 需要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_22501195_10930\Main.java:17: 错误: 需要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_22501195_10930\Main.java:17: 错误: 需要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_22501195_10930\Main.java:20: 错误: 需要class, interface或enum
ll n;
^
0_0_22501195_10930\Main.java:21: 错误: 需要class, interface或enum
namespace linear_seq {
^
0_0_22501195_10930\Main.java:23: 错误: 需要class, interface或enum
    ll res[N],base[N],_c[N],_md[N];
    ^
0_0_22501195_10930\Main.java:25: 错误: 需要class, interface或enum
    vector<int> Md;
    ^
0_0_22501195_10930\Main.java:26: 错误: 需要class, interface或enum
    void mul(ll *a,ll *b,int k) {
    ^
0_0_22501195_10930\Main.java:28: 错误: 需要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_22501195_10930\Main.java:29: 错误: 需要class, interface或enum
        for (int i=k+k-1;i>=k;i--) if (_c[i])
        ^
0_0_22501195_10930\Main.java:29: 错误: 需要class, interface或enum
        for (int i=k+k-1;i>=k;i--) if (_c[i])
                         ^
0_0_22501195_10930\Main.java:29: 错误: 需要class, interface或enum
        for (int i=k+k-1;i>=k;i--) if (_c[i])
                              ^
0_0_22501195_10930\Main.java:31: 错误: 需要class, interface或enum
        rep(i,0,k) a[i]=_c[i];
        ^
0_0_22501195_10930\Main.java:32: 错误: 需要class, interface或enum
    }
    ^
0_0_22501195_10930\Main.java:36: 错误: 需要class, interface或enum
        int k=SZ(a);
        ^
0_0_22501195_10930\Main.java:37: 错误: 从发行版 1.4 开始, 'assert' 是一个关键字, 但不能用作标识符
        assert(SZ(a)==SZ(b));
        ^
  (请使用 -source 1.3 或更低版本以将 'assert' 用作标识符)
0_0_22501195_10930\Main.java:38: 错误: 需要class, interface或enum
        rep(i,0,k) _md[k-1-i]=-a[i];_md[k]=1;
        ^
0_0_22501195_10930\Main.java:38: 错误: 需要class, interface或enum
        rep(i,0,k) _md[k-1-i]=-a[i];_md[k]=1;
                                    ^
0_0_22501195_10930\Main.java:39: 错误: 需要class, interface或enum
        Md.clear();
        ^
0_0_22501195_10930\Main.java:40: 错误: 需要class, interface或enum
        rep(i,0,k) if (_md[i]!=0) Md.push_back(i);
        ^
0_0_22501195_10930\Main.java:41: 错误: 需要class, interface或enum
        rep(i,0,k) res[i]=base[i]=0;
        ^
0_0_22501195_10930\Main.java:42: 错误: 需要class, interface或enum
        res[0]=1;
        ^
0_0_22501195_10930\Main.java:43: 错误: 需要class, interface或enum
        while ((1ll<<pnt)<=n) pnt++;
        ^
0_0_22501195_10930\Main.java:44: 错误: 需要class, interface或enum
        for (int p=pnt;p>=0;p--) {
        ^
0_0_22501195_10930\Main.java:44: 错误: 需要class, interface或enum
        for (int p=pnt;p>=0;p--) {
                       ^
0_0_22501195_10930\Main.java:44: 错误: 需要class, interface或enum
        for (int p=pnt;p>=0;p--) {
                            ^
0_0_22501195_10930\Main.java:46: 错误: 需要class, interface或enum
            if ((n>>p)&1) {
            ^
0_0_22501195_10930\Main.java:47: 错误: 需要class, interface或enum
                for (int i=k-1;i>=0;i--) res[i+1]=res[i];res[0]=0;
                               ^
0_0_22501195_10930\Main.java:47: 错误: 需要class, interface或enum
                for (int i=k-1;i>=0;i--) res[i+1]=res[i];res[0]=0;
                                    ^
0_0_22501195_10930\Main.java:47: 错误: 需要class, interface或enum
                for (int i=k-1;i>=0;i--) res[i+1]=res[i];res[0]=0;
                                                         ^
0_0_22501195_10930\Main.java:48: 错误: 需要class, interface或enum
                rep(j,0,SZ(Md)) res[Md[j]]=(res[Md[j]]-res[k]*_md[Md[j]])%mod;
                ^
0_0_22501195_10930\Main.java:49: 错误: 需要class, interface或enum
            }
            ^
0_0_22501195_10930\Main.java:52: 错误: 需要class, interface或enum
        if (ans<0) ans+=mod;
        ^
0_0_22501195_10930\Main.java:53: 错误: 需要class, interface或enum
        return ans;
        ^
0_0_22501195_10930\Main.java:54: 错误: 需要class, interface或enum
    }
    ^
0_0_22501195_10930\Main.java:57: 错误: 需要class, interface或enum
        int L=0,m=1,b=1;
        ^
0_0_22501195_10930\Main.java:58: 错误: 需要class, interface或enum
        rep(n,0,SZ(s)) {
        ^
0_0_22501195_10930\Main.java:60: 错误: 需要class, interface或enum
            rep(i,0,L+1) d=(d+(ll)C[i]*s[n-i])%mod;
            ^
0_0_22501195_10930\Main.java:61: 错误: 需要class, interface或enum
            if (d==0) ++m;
            ^
0_0_22501195_10930\Main.java:62: 错误: 需要class, interface或enum
            else if (2*L<=n) {
            ^
0_0_22501195_10930\Main.java:64: 错误: 需要class, interface或enum
                ll c=mod-d*powmod(b,mod-2)%mod;
                ^
0_0_22501195_10930\Main.java:65: 错误: 需要class, interface或enum
                while (SZ(C)<SZ(B)+m) C.pb(0);
                ^
0_0_22501195_10930\Main.java:66: 错误: 需要class, interface或enum
                rep(i,0,SZ(B)) C[i+m]=(C[i+m]+c*B[i])%mod;
                ^
0_0_22501195_10930\Main.java:67: 错误: 需要class, interface或enum
                L=n+1-L; B=T; b=d; m=1;
                ^
0_0_22501195_10930\Main.java:67: 错误: 需要class, interface或enum
                L=n+1-L; B=T; b=d; m=1;
                         ^
0_0_22501195_10930\Main.java:67: 错误: 需要class, interface或enum
                L=n+1-L; B=T; b=d; m=1;
                              ^
0_0_22501195_10930\Main.java:67: 错误: 需要class, interface或enum
                L=n+1-L; B=T; b=d; m=1;
                                   ^
0_0_22501195_10930\Main.java


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-26 04:58:01, Gzip enabled