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_31775984_27777.cpp:1:1: error: 'import' does not name a type
 import java.io.*;
 ^
0_0_31775984_27777.cpp:2:1: error: 'import' does not name a type
 import java.util.*;
 ^
0_0_31775984_27777.cpp:3:1: error: 'import' does not name a type
 import java.math.*;
 ^
0_0_31775984_27777.cpp:6:5: error: 'BufferedReader' does not name a type
     BufferedReader buf;
     ^
0_0_31775984_27777.cpp:7:5: error: 'StringTokenizer' does not name a type
     StringTokenizer tok;
     ^
0_0_31775984_27777.cpp:11:5: error: 'boolean' does not name a type
     boolean hasNext() {
     ^
0_0_31775984_27777.cpp:21:5: error: 'String' does not name a type
     String next() {
     ^
0_0_31775984_27777.cpp:35:5: error: 'BigInteger' does not name a type
     BigInteger nextBigInteger() {
     ^
0_0_31775984_27777.cpp:38:5: error: 'BigDecimal' does not name a type
     BigDecimal nextBigDecimal() {
     ^
0_0_31775984_27777.cpp:41:1: error: expected ';' after class definition
 }
 ^
0_0_31775984_27777.cpp: In constructor 'InputReader::InputReader()':
0_0_31775984_27777.cpp:9:9: error: 'buf' was not declared in this scope
         buf = new BufferedReader(new InputStreamReader(System.in));
         ^
0_0_31775984_27777.cpp:9:19: error: expected type-specifier before 'BufferedReader'
         buf = new BufferedReader(new InputStreamReader(System.in));
                   ^
0_0_31775984_27777.cpp: In member function 'int InputReader::nextInt()':
0_0_31775984_27777.cpp:27:16: error: 'Integer' was not declared in this scope
         return Integer.parseInt(next());
                ^
0_0_31775984_27777.cpp:27:38: error: 'next' was not declared in this scope
         return Integer.parseInt(next());
                                      ^
0_0_31775984_27777.cpp: In member function 'long int InputReader::nextLong()':
0_0_31775984_27777.cpp:30:16: error: 'Long' was not declared in this scope
         return Long.parseLong(next());
                ^
0_0_31775984_27777.cpp:30:36: error: 'next' was not declared in this scope
         return Long.parseLong(next());
                                    ^
0_0_31775984_27777.cpp: In member function 'double InputReader::nextDouble()':
0_0_31775984_27777.cpp:33:16: error: 'Double' was not declared in this scope
         return Double.parseDouble(next());
                ^
0_0_31775984_27777.cpp:33:40: error: 'next' was not declared in this scope
         return Double.parseDouble(next());
                                        ^
0_0_31775984_27777.cpp: At global scope:
0_0_31775984_27777.cpp:42: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-25 16:50:05, Gzip enabled