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_32972114_13294.cpp:1:1: error: 'import' does not name a type
 import java.io.*;
 ^
0_0_32972114_13294.cpp:2:1: error: 'import' does not name a type
 import java.util.Arrays;
 ^
0_0_32972114_13294.cpp:3:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_32972114_13294.cpp:4:1: error: 'import' does not name a type
 import java.util.StringTokenizer;
 ^
0_0_32972114_13294.cpp:7:12: error: expected ':' before 'static'
     public static void main(String[] args) {
            ^
0_0_32972114_13294.cpp:7:29: error: 'String' has not been declared
     public static void main(String[] args) {
                             ^
0_0_32972114_13294.cpp:7:38: error: expected ',' or '...' before 'args'
     public static void main(String[] args) {
                                      ^
0_0_32972114_13294.cpp:25:12: error: expected unqualified-id before '[' token
         int[] p = new int[700000];
            ^
0_0_32972114_13294.cpp:26:13: error: expected unqualified-id before '[' token
         long[] c = new long[700000];
             ^
0_0_32972114_13294.cpp:27:12: error: expected unqualified-id before '[' token
         int[] prime = new int[700000];
            ^
0_0_32972114_13294.cpp:28:13: error: expected unqualified-id before '[' token
         long[] f = new long[10000010];
             ^
0_0_32972114_13294.cpp:30:9: error: 'boolean' does not name a type
         boolean[] v = new boolean[10000010];
         ^
0_0_32972114_13294.cpp:68:16: error: expected ':' before 'void'
         public void solve(Scanner in, PrintWriter out) {
                ^
0_0_32972114_13294.cpp:68:27: error: 'Scanner' has not been declared
         public void solve(Scanner in, PrintWriter out) {
                           ^
0_0_32972114_13294.cpp:68:39: error: 'PrintWriter' has not been declared
         public void solve(Scanner in, PrintWriter out) {
                                       ^
0_0_32972114_13294.cpp:94:5: error: expected ';' after class definition
     }
     ^
0_0_32972114_13294.cpp:94:5: error: a storage class can only be specified for objects and functions
0_0_32972114_13294.cpp:97:9: error: 'BufferedReader' does not name a type
         BufferedReader br = null;
         ^
0_0_32972114_13294.cpp:98:9: error: 'StringTokenizer' does not name a type
         StringTokenizer st = null;
         ^
0_0_32972114_13294.cpp:99:33: error: expected ')' before 'in'
         InputReader(InputStream in) {
                                 ^
0_0_32972114_13294.cpp:102:9: error: 'String' does not name a type
         String nextLine() {
         ^
0_0_32972114_13294.cpp:112:9: error: 'String' does not name a type
         String next() {
         ^
0_0_32972114_13294.cpp:122:9: error: 'Integer' does not name a type
         Integer nextInt() {
         ^
0_0_32972114_13294.cpp:125:9: error: 'Long' does not name a type
         Long nextLong() {
         ^
0_0_32972114_13294.cpp:128:9: error: 'Double' does not name a type
         Double nextDouble() {
         ^
0_0_32972114_13294.cpp:131:5: error: expected ';' after class definition
     }
     ^
0_0_32972114_13294.cpp:131:5: error: a storage class can only be specified for objects and functions
0_0_32972114_13294.cpp:132:1: error: expected ';' after class definition
 }
 ^
0_0_32972114_13294.cpp: In static member function 'static void Main::main(int*)':
0_0_32972114_13294.cpp:8:9: error: 'InputStream' was not declared in this scope
         InputStream is = System.in;
         ^
0_0_32972114_13294.cpp:9:9: error: 'OutputStream' was not declared in this scope
         OutputStream os = System.out;
         ^
0_0_32972114_13294.cpp:11:9: error: 'PrintWriter' was not declared in this scope
         PrintWriter out = new PrintWriter(os);
         ^
0_0_32972114_13294.cpp:13:9: error: 'Scanner' was not declared in this scope
         Scanner in = new Scanner(new BufferedInputStream(System.in));
         ^
0_0_32972114_13294.cpp:16:36: error: conversion from 'Main::Solver*' to non-scalar type 'Main::Solver' requested
         Solver solver = new Solver();
                                    ^
0_0_32972114_13294.cpp:18:22: error: 'in' was not declared in this scope
         solver.solve(in, out);
                      ^
0_0_32972114_13294.cpp:18:26: error: 'out' was not declared in this scope
         solver.solve(in, out);
                          ^
0_0_32972114_13294.cpp: In member function 'long int Main::Solver::fact(int, int)':
0_0_32972114_13294.cpp:50:21: error: 'prime' was not declared in this scope
                 if (prime[i] > n) break;
                     ^
0_0_32972114_13294.cpp:51:17: error: 'p' was not declared in this scope
                 p[++tot] = prime[i];
                 ^
0_0_32972114_13294.cpp:51:28: error: 'prime' was not declared in this scope
                 p[++tot] = prime[i];
                            ^
0_0_32972114_13294.cpp:52:17: error: 'c' was not declared in this scope
                 c[tot] = get(n, prime[i]);
                 ^
0_0_32972114_13294.cpp: In member function 'void Main::Solver::solve(int, int)':
0_0_32972114_13294.cpp:70:13: error: 'final' was not declared in this scope
             final int N = 10000010;
             ^
0_0_32972114_13294.cpp:72:13: error: 'f' was not declared in this scope
             f[0] = f[1] = 1;
             ^
0_0_32972114_13294.cpp:73:33: error: 'N' was not declared in this scope
             for (int i = 2; i < N; i++) {
                                 ^
0_0_32972114_13294.cpp:75:22: error: 'v' was not declared in this scope
                 if (!v[i]) {
                      ^
0_0_32972114_13294.cpp:76:21: error: 'prime' was not declared in this scope
                     prime[++ps] = i;
                     ^
0_0_32972114_13294.cpp:79:29: error: 'prime' was not declared in this scope
                     if (i * prime[j] >= N) break;
                             ^
0_0_32972114_13294.cpp:80:21: error: 'v' was not declared in this scope
                     v[i * prime[j]] = true;
                     ^
0_0_32972114_13294.cpp:80:27: error: 'prime' was not declared in this scope
                     v[i * prime[j]] = true;
                           ^
0_0_32972114_13294.cpp:86:28: error: request for member 'nextInt' in 'in', which is of non-class type 'int'
                 int n = in.nextInt();
                            ^
0_0_32972114_13294.cpp:90:21: error: request for member 'println' in 'out', which is of non-class type 'int'
                 out.println(ans);
                     ^


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-29 01:19:43, Gzip enabled