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_30401896_5725\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_30401896_5725\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_30401896_5725\Main.java:3: 错误: 需要class, interface或enum
using namespace std;
^
0_0_30401896_5725\Main.java:4: 错误: 非法字符: '#'
#define N 1000010
^
0_0_30401896_5725\Main.java:4: 错误: 需要class, interface或enum
#define N 1000010
        ^
0_0_30401896_5725\Main.java:6: 错误: 需要class, interface或enum
ll phi[N],p[N],isnp[N],tot,s[N];
^
0_0_30401896_5725\Main.java:7: 错误: 需要class, interface或enum
void sieve(){
^
0_0_30401896_5725\Main.java:9: 错误: 需要class, interface或enum
	isnp[0]=isnp[1]=1;
	^
0_0_30401896_5725\Main.java:10: 错误: 需要class, interface或enum
	phi[1]=1;
	^
0_0_30401896_5725\Main.java:11: 错误: 需要class, interface或enum
	for(i=2;i<N;i++){
	^
0_0_30401896_5725\Main.java:11: 错误: 需要class, interface或enum
	for(i=2;i<N;i++){
	        ^
0_0_30401896_5725\Main.java:11: 错误: 需要class, interface或enum
	for(i=2;i<N;i++){
	            ^
0_0_30401896_5725\Main.java:14: 错误: 需要class, interface或enum
			phi[i]=i-1;
			^
0_0_30401896_5725\Main.java:15: 错误: 需要class, interface或enum
		}
		^
0_0_30401896_5725\Main.java:16: 错误: 需要class, interface或enum
		for(j=0;j<tot;j++){
		        ^
0_0_30401896_5725\Main.java:16: 错误: 需要class, interface或enum
		for(j=0;j<tot;j++){
		              ^
0_0_30401896_5725\Main.java:18: 错误: 需要class, interface或enum
			isnp[i*p[j]]=1;
			^
0_0_30401896_5725\Main.java:19: 错误: 需要class, interface或enum
			if(i%p[j]==0){phi[i*p[j]]=phi[i]*p[j];break;}
			^
0_0_30401896_5725\Main.java:19: 错误: 需要class, interface或enum
			if(i%p[j]==0){phi[i*p[j]]=phi[i]*p[j];break;}
			                                      ^
0_0_30401896_5725\Main.java:19: 错误: 需要class, interface或enum
			if(i%p[j]==0){phi[i*p[j]]=phi[i]*p[j];break;}
			                                            ^
0_0_30401896_5725\Main.java:21: 错误: 需要class, interface或enum
		}
		^
0_0_30401896_5725\Main.java:23: 错误: 需要class, interface或enum
	for(i=1;i<N;i++)s[i]=(s[i-1]+phi[i]*i)%mod;
	        ^
0_0_30401896_5725\Main.java:23: 错误: 需要class, interface或enum
	for(i=1;i<N;i++)s[i]=(s[i-1]+phi[i]*i)%mod;
	            ^
0_0_30401896_5725\Main.java:24: 错误: 需要class, interface或enum
}
^
0_0_30401896_5725\Main.java:27: 错误: 需要class, interface或enum
	ll ans=((n*(n+1))%mod*(2*n+1))%mod/6;
	^
0_0_30401896_5725\Main.java:28: 错误: 需要class, interface或enum
	ll i,r;
	^
0_0_30401896_5725\Main.java:29: 错误: 需要class, interface或enum
	for(i=2;i<=n;i=r+1){
	^
0_0_30401896_5725\Main.java:29: 错误: 需要class, interface或enum
	for(i=2;i<=n;i=r+1){
	        ^
0_0_30401896_5725\Main.java:29: 错误: 需要class, interface或enum
	for(i=2;i<=n;i=r+1){
	             ^
0_0_30401896_5725\Main.java:31: 错误: 需要class, interface或enum
		ans-=(r*(r+1)/2-i*(i-1)/2)*getS(n/i);
		^
0_0_30401896_5725\Main.java:32: 错误: 需要class, interface或enum
	}
	^
0_0_30401896_5725\Main.java:34: 错误: 需要class, interface或enum
	return ret;
	^
0_0_30401896_5725\Main.java:35: 错误: 需要class, interface或enum
}
^
0_0_30401896_5725\Main.java:38: 错误: 需要class, interface或enum
	int i,n,T,a,b;
	^
0_0_30401896_5725\Main.java:39: 错误: 需要class, interface或enum
	scanf("%d",&T);
	^
0_0_30401896_5725\Main.java:40: 错误: 需要class, interface或enum
	while(~scanf("%d%d%d",&n,&a,&b))printf("%lld\n",getS(n)/2);
	^
0_0_30401896_5725\Main.java:41: 错误: 需要class, interface或enum
	return 0;
	^
0_0_30401896_5725\Main.java:42: 错误: 需要class, interface或enum
}
^
38 个错误


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-23 09:31:12, Gzip enabled