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_32325149_1588.cpp:36:2: error: stray '@' in program
  @SuppressWarnings("static-access")
  ^
0_0_32325149_1588.cpp:1:1: error: 'import' does not name a type
 import java.math.BigInteger;
 ^
0_0_32325149_1588.cpp:2:1: error: 'import' does not name a type
 import java.util.Arrays;
 ^
0_0_32325149_1588.cpp:3:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_32325149_1588.cpp:4:1: error: 'import' does not name a type
 import java.util.Vector;
 ^
0_0_32325149_1588.cpp:8:9: error: expected ':' before 'final'
  public final static int N=1000000;
         ^
0_0_32325149_1588.cpp:8:9: error: 'final' does not name a type
0_0_32325149_1588.cpp:9:9: error: expected ':' before 'static'
  public static int[] IsNotPrime = new int[N+10];
         ^
0_0_32325149_1588.cpp:9:19: error: expected unqualified-id before '[' token
  public static int[] IsNotPrime = new int[N+10];
                   ^
0_0_32325149_1588.cpp:10:9: error: expected ':' before 'static'
  public static Vector<Integer> Prime=new Vector<Integer>();
         ^
0_0_32325149_1588.cpp:10:16: error: 'Vector' does not name a type
  public static Vector<Integer> Prime=new Vector<Integer>();
                ^
0_0_32325149_1588.cpp:11:9: error: expected ':' before 'static'
  public static int prime_num=0;
         ^
0_0_32325149_1588.cpp:11:30: error: ISO C++ forbids in-class initialization of non-const static member 'prime::prime_num'
  public static int prime_num=0;
                              ^
0_0_32325149_1588.cpp:12:9: error: expected ':' before 'prime'
  public prime()
         ^
0_0_32325149_1588.cpp:30:9: error: expected ':' before 'static'
  public static int value(int i)  //返回第i+1个质数
         ^
0_0_32325149_1588.cpp:34:1: error: expected ';' after class definition
 }
 ^
0_0_32325149_1588.cpp: In constructor 'prime::prime()':
0_0_32325149_1588.cpp:14:3: error: 'Arrays' was not declared in this scope
   Arrays.fill(IsNotPrime, 0);
   ^
0_0_32325149_1588.cpp:14:15: error: 'IsNotPrime' was not declared in this scope
   Arrays.fill(IsNotPrime, 0);
               ^
0_0_32325149_1588.cpp:15:18: error: 'N' was not declared in this scope
   for(int i=2;i<=N;i++)  //利用快速筛法求出所有质数,并存在一个vector里
                  ^
0_0_32325149_1588.cpp:19:5: error: 'Prime' was not declared in this scope
     Prime.add(i);
     ^
0_0_32325149_1588.cpp:22:31: error: 'Prime' was not declared in this scope
    for(int j=0;j<prime_num&&i*Prime.elementAt(j)<=N;j++)
                               ^
0_0_32325149_1588.cpp: In static member function 'static int prime::value(int)':
0_0_32325149_1588.cpp:32:10: error: 'Prime' was not declared in this scope
   return Prime.elementAt(i);
          ^
0_0_32325149_1588.cpp: At global scope:
0_0_32325149_1588.cpp:35:1: error: expected unqualified-id before 'public'
 public class Main {
 ^


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-30 01:15:44, Gzip enabled