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_36092616_5181\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_36092616_5181\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_36092616_5181\Main.java:3: 错误: 非法字符: '#'
#define ll long long
^
0_0_36092616_5181\Main.java:3: 错误: 需要class, interface或enum
#define ll long long
        ^
0_0_36092616_5181\Main.java:4: 错误: 非法字符: '#'
#define ull unsigned ll
^
0_0_36092616_5181\Main.java:6: 错误: 需要class, interface或enum
const int Primitive_root = 3;//先用Get_root求出来原根然后当const用 
^
0_0_36092616_5181\Main.java:7: 错误: 需要class, interface或enum
struct Z{
^
0_0_36092616_5181\Main.java:9: 错误: 需要class, interface或enum
    Z(const int _x=0):x(_x){}
    ^
0_0_36092616_5181\Main.java:10: 错误: 需要class, interface或enum
    Z operator +(const Z &r)const{ return x+r.x<P?x+r.x:x+r.x-P;}
                                                                ^
0_0_36092616_5181\Main.java:11: 错误: 需要class, interface或enum
    Z operator -(const Z &r)const{ return x<r.x?x-r.x+P:x-r.x;}
                                                              ^
0_0_36092616_5181\Main.java:12: 错误: 需要class, interface或enum
    Z operator -()const{ return x?P-x:0;}
                                        ^
0_0_36092616_5181\Main.java:13: 错误: 需要class, interface或enum
    Z operator *(const Z &r)const{ return static_cast<ull>(x)*r.x%P;}
                                                                    ^
0_0_36092616_5181\Main.java:14: 错误: 需要class, interface或enum
    Z operator +=(const Z &r){ return x=x+r.x<P?x+r.x:x+r.x-P, *this;}
                                                                     ^
0_0_36092616_5181\Main.java:15: 错误: 需要class, interface或enum
    Z operator -=(const Z &r){ return x=x<r.x?x-r.x+P:x-r.x, *this;}
                                                                   ^
0_0_36092616_5181\Main.java:16: 错误: 需要class, interface或enum
    Z operator *=(const Z &r){ return x=static_cast<ull>(x)*r.x%P, *this;}
                                                                         ^
0_0_36092616_5181\Main.java:18: 错误: 需要class, interface或enum
    pair<Z,Z> Mul(pair<Z,Z> x, pair<Z,Z> y, Z f)const{
    ^
0_0_36092616_5181\Main.java:23: 错误: 需要class, interface或enum
    }
    ^
0_0_36092616_5181\Main.java:26: 错误: 需要class, interface或enum
        if(Pow((Z)x, (P-1)/2).x!=1) return -1;
        ^
0_0_36092616_5181\Main.java:27: 错误: 需要class, interface或enum
        Z y, f;
        ^
0_0_36092616_5181\Main.java:28: 错误: 需要class, interface或enum
        mt19937 rng(20030226);
        ^
0_0_36092616_5181\Main.java:29: 错误: 需要class, interface或enum
        do y=rng()%(x-1)+1; while(Pow(f=y*y-x, (P-1)/2).x==1);
        ^
0_0_36092616_5181\Main.java:29: 错误: 需要class, interface或enum
        do y=rng()%(x-1)+1; while(Pow(f=y*y-x, (P-1)/2).x==1);
                            ^
0_0_36092616_5181\Main.java:30: 错误: 需要class, interface或enum
        pair<Z,Z> ans=make_pair(1, 0), t=make_pair(y, 1);
        ^
0_0_36092616_5181\Main.java:31: 错误: 需要class, interface或enum
        for(int i=(P+1)/2; i; i>>=1, t=Mul(t, t, f)) if(i&1) ans=Mul(ans, t, f);
        ^
0_0_36092616_5181\Main.java:31: 错误: 需要class, interface或enum
        for(int i=(P+1)/2; i; i>>=1, t=Mul(t, t, f)) if(i&1) ans=Mul(ans, t, f);
                           ^
0_0_36092616_5181\Main.java:31: 错误: 需要class, interface或enum
        for(int i=(P+1)/2; i; i>>=1, t=Mul(t, t, f)) if(i&1) ans=Mul(ans, t, f);
                              ^
0_0_36092616_5181\Main.java:32: 错误: 需要class, interface或enum
        return min(ans.first.x, P-ans.first.x);
        ^
0_0_36092616_5181\Main.java:33: 错误: 需要class, interface或enum
    }
    ^
0_0_36092616_5181\Main.java:35: 错误: 需要class, interface或enum
Z Pow(Z x, int y=P-2){
^
0_0_36092616_5181\Main.java:37: 错误: 需要class, interface或enum
    for(; y; y>>=1, x=x*x) if(y&1) ans=ans*x;
    ^
0_0_36092616_5181\Main.java:37: 错误: 需要class, interface或enum
    for(; y; y>>=1, x=x*x) if(y&1) ans=ans*x;
          ^
0_0_36092616_5181\Main.java:37: 错误: 需要class, interface或enum
    for(; y; y>>=1, x=x*x) if(y&1) ans=ans*x;
             ^
0_0_36092616_5181\Main.java:38: 错误: 需要class, interface或enum
    return ans;
    ^
0_0_36092616_5181\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_36092616_5181\Main.java:42: 错误: 需要class, interface或enum
    Z Inv[N];
    ^
0_0_36092616_5181\Main.java:43: 错误: 需要class, interface或enum
    vector<Z> ans;
    ^
0_0_36092616_5181\Main.java:44: 错误: 需要class, interface或enum
    vector<vector<Z>> p;
    ^
0_0_36092616_5181\Main.java:45: 错误: 需要class, interface或enum
    ull F[N];
    ^
0_0_36092616_5181\Main.java:46: 错误: 需要class, interface或enum
    int Get_root(){
    ^
0_0_36092616_5181\Main.java:48: 错误: 需要class, interface或enum
		int n=P-1,sz=(int)(sqrt(n)),root=-1;
		^
0_0_36092616_5181\Main.java:49: 错误: 需要class, interface或enum
		for(int i=2;i<=sz;++i){if(n%i==0)pr[cnt++]=i;while(n%i==0)n/=i;}
		^
0_0_36092616_5181\Main.java:49: 错误: 需要class, interface或enum
		for(int i=2;i<=sz;++i){if(n%i==0)pr[cnt++]=i;while(n%i==0)n/=i;}
		            ^
0_0_36092616_5181\Main.java:49: 错误: 需要class, interface或enum
		for(int i=2;i<=sz;++i){if(n%i==0)pr[cnt++]=i;while(n%i==0)n/=i;}
		                  ^
0_0_36092616_5181\Main.java:49: 错误: 需要class, interface或enum
		for(int i=2;i<=sz;++i){if(n%i==0)pr[cnt++]=i;while(n%i==0)n/=i;}
		                                             ^
0_0_36092616_5181\Main.java:49: 错误: 需要class, interface或enum
		for(int i=2;i<=sz;++i){if(n%i==0)pr[cnt++]=i;while(n%i==0)n/=i;}
		                                                               ^
0_0_36092616_5181\Main.java:51: 错误: 需要class, interface或enum
		for(int i=1;i<P;++i){
		^
0_0_36092616_5181\Main.java:51: 错误: 需要class, interface或enum
		for(int i=1;i<P;++i){
		            ^
0_0_36092616_5181\Main.java:51: 错误: 需要class, interface或enum
		for(int i=1;i<P;++i){
		                ^
0_0_36092616_5181\Main.java:54: 错误: 需要class, interface或enum
				for(int j=0;j<cnt;++j){
				^
0_0_36092616_5181\Main.java:54: 错误: 需要class, interface或enum
				for(int j=0;j<cnt;++j){
				            ^
0_0_36092616_5181\Main.java:54: 错误: 需要class, interface或enum
				for(int j=0;j<cnt;++j){
				                  ^
0_0_36092616_5181\Main.java:56: 错误: 需要class, interface或enum
						fl=false;break;
						         ^
0_0_36092616_5181\Main.java:57: 错误: 需要class, interface或enum
					}
					^
0_0_36092616_5181\Main.java:59: 错误: 需要class, interface或enum
				if(fl){root=i;break;}
				              ^
0_0_36092616_5181\Main.java:59: 错误: 需要class, interface或enum
				if(fl){root=i;break;}
				                    ^
0_0_36092616_5181\Main.java:63: 错误: 需要class, interface或enum
	}
	^
0_0_36092616_5181\Main.java:66: 错误: 需要class, interface或enum
        for(int i=1; i<N; i<<=1){
                     ^
0_0_36092616_5181\Main.java:66: 错误: 需要class, interface或enum
        for(int i=1; i<N; i<<=1){
                          ^
0_0_36092616_5181\Main.java:68: 错误: 需要class, interface或enum
            Z t=Pow((Z)Primitive_root, (P-1)/i/2);
            ^
0_0_36092616_5181\Main.java:69: 错误: 需要class, interface或enum
            for(int j=1; j<i; ++j) w[i+j]=w[i+j-1]*t;
            ^
0_0_36092616_5181\Main.java:69: 错误: 需要class, interface或enum
            for(int j=1; j<i; ++j) w[i+j]=w[i+j-1]*t;
                         ^
0_0_36092616_5181\Main.java:69: 错误: 需要class, interface或enum
            for(int j=1; j<i; ++j) w[i+j]=w[i+j-1]*t;
                              ^
0_0_36092616_5181\Main.java:70: 错误: 需要class, interface或enum
        }
        ^
0_0_36092616_5181\Main.java:72: 错误: 需要class, interface或enum
        for(int i=2; i<N; ++i) Inv[i]=Inv[P%i]*(P-P/i);
        ^
0_0_36092616_5181\Main.java:72: 错误: 需要class, interface或enum
        for(int i=2; i<N; ++i) Inv[i]=Inv[P%i]*(P-P/i);
                     ^
0_0_36092616_5181\Main.java:72: 错误: 需要class, interface或enum
        for(int i=2; i<N; ++i) Inv[i]=Inv[P%i]*(P-P/i);
                          ^
0_0_36092616_5181\Main.java:73: 错误: 需要class, interface或enum
    }
    ^
0_0_36092616_5181\Main.java:74: 错误: 需要class, interface或enum
    int Get(int x){ int n=1; while(n<=x) n<<=1; return n;}
                             ^
0_0_36092616_5181\Main.java:74: 错误: 需要class, interface或enum
    int Get(int x){ int n=1; while(n<=x) n<<=1; return n;}
                                                ^
0_0_36092616_5181\Main.java:74: 错误: 需要class, interface或enum
    int Get(int x){ int n=1; while(n<=x) n<<=1; return n;}
                                                         ^
0_0_36092616_5181\Main.java:75: 错误: 需要class, interface或enum
    int Mod(int x){ return x<P?x:x-P;}
                                     ^
0_0_36092616_5181\Main.java:78: 错误: 需要class, interface或enum
        for(int i=0, j=0; i<n; ++i){
        ^
0_0_36092616_5181\Main.java:78: 错误: 需要class, interface或enum
        for(int i=0, j=0; i<n; ++i){
                          ^
0_0_36092616_5181\Main.java:78: 错误: 需要class, interface或enum
        for(int i=0, j=0; i<n; ++i){
                               ^
0_0_36092616_5181\Main.java:80: 错误: 需要class, interface或enum
            for(int k=n>>1; (j^=k)<k; k>>=1);
            ^
R:


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 22:15:39, Gzip enabled