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_37512840_28726.cpp:1:1: error: 'import' does not name a type
 import java.io.BufferedReader;
 ^
0_0_37512840_28726.cpp:2:1: error: 'import' does not name a type
 import java.io.IOException;
 ^
0_0_37512840_28726.cpp:3:1: error: 'import' does not name a type
 import java.io.InputStreamReader;
 ^
0_0_37512840_28726.cpp:4:1: error: 'import' does not name a type
 import java.io.PrintWriter;
 ^
0_0_37512840_28726.cpp:5:1: error: 'import' does not name a type
 import java.util.*;
 ^
0_0_37512840_28726.cpp:36:12: error: expected ':' before 'static'
     public static void main(String[] args) throws Exception {
            ^
0_0_37512840_28726.cpp:36:29: error: 'String' has not been declared
     public static void main(String[] args) throws Exception {
                             ^
0_0_37512840_28726.cpp:36:38: error: expected ',' or '...' before 'args'
     public static void main(String[] args) throws Exception {
                                      ^
0_0_37512840_28726.cpp:36:42: error: expected ';' at end of member declaration
     public static void main(String[] args) throws Exception {
                                          ^
0_0_37512840_28726.cpp:36:44: error: 'throws' does not name a type
     public static void main(String[] args) throws Exception {
                                            ^
0_0_37512840_28726.cpp:44:9: error: 'StringTokenizer' does not name a type
         StringTokenizer st;
         ^
0_0_37512840_28726.cpp:45:9: error: 'BufferedReader' does not name a type
         BufferedReader br;
         ^
0_0_37512840_28726.cpp:46:16: error: expected ':' before 'FastReader'
         public FastReader(){
                ^
0_0_37512840_28726.cpp:50:9: error: 'String' does not name a type
         String next(){
         ^
0_0_37512840_28726.cpp:69:9: error: 'String' does not name a type
         String nextLine() {
         ^
0_0_37512840_28726.cpp:79:12: error: conflicting specifiers in declaration of 'PrintWriter'
     static PrintWriter out = new PrintWriter(System.out);
            ^
0_0_37512840_28726.cpp:79:12: error: expected ';' at end of member declaration
0_0_37512840_28726.cpp:79:24: error: 'out' does not name a type
     static PrintWriter out = new PrintWriter(System.out);
                        ^
0_0_37512840_28726.cpp:80:43: error: in-class initialization of static data member 'Main::FastReader Main::in' of non-literal type
     static FastReader in = new FastReader();
                                           ^
0_0_37512840_28726.cpp:80:43: error: conversion from 'Main::FastReader*' to non-scalar type 'Main::FastReader' requested
0_0_37512840_28726.cpp:81:1: error: expected ';' after class definition
 }
 ^
0_0_37512840_28726.cpp: In static member function 'static void Main::solve()':
0_0_37512840_28726.cpp:10:9: error: 'Integer' was not declared in this scope
         Integer a[]=new Integer[n];
         ^
0_0_37512840_28726.cpp:13:13: error: 'a' was not declared in this scope
             a[i]=in.nextInt();
             ^
0_0_37512840_28726.cpp:17:13: error: 'out' was not declared in this scope
             out.println("no");
             ^
0_0_37512840_28726.cpp:22:13: error: 'Arrays' was not declared in this scope
             Arrays.sort(a,(x,y)->{return y-x;});
             ^
0_0_37512840_28726.cpp:22:25: error: 'a' was not declared in this scope
             Arrays.sort(a,(x,y)->{return y-x;});
                         ^
0_0_37512840_28726.cpp:22:28: error: 'x' was not declared in this scope
             Arrays.sort(a,(x,y)->{return y-x;});
                            ^
0_0_37512840_28726.cpp:22:30: error: 'y' was not declared in this scope
             Arrays.sort(a,(x,y)->{return y-x;});
                              ^
0_0_37512840_28726.cpp:22:34: error: expected unqualified-id before '{' token
             Arrays.sort(a,(x,y)->{return y-x;});
                                  ^
0_0_37512840_28726.cpp:24:17: error: 'out' was not declared in this scope
                 out.println("yes");
                 ^
0_0_37512840_28726.cpp:29:21: error: 'out' was not declared in this scope
                     out.println("no");
                     ^
0_0_37512840_28726.cpp: In constructor 'Main::FastReader::FastReader()':
0_0_37512840_28726.cpp:47:13: error: 'br' was not declared in this scope
             br=new BufferedReader(new InputStreamReader(System.in));
             ^
0_0_37512840_28726.cpp:47:20: error: expected type-specifier before 'BufferedReader'
             br=new BufferedReader(new InputStreamReader(System.in));
                    ^
0_0_37512840_28726.cpp: In member function 'int Main::FastReader::nextInt()':
0_0_37512840_28726.cpp:61:20: error: 'Integer' was not declared in this scope
             return Integer.parseInt(next());
                    ^
0_0_37512840_28726.cpp:61:42: error: 'next' was not declared in this scope
             return Integer.parseInt(next());
                                          ^
0_0_37512840_28726.cpp: In member function 'long int Main::FastReader::nextLong()':
0_0_37512840_28726.cpp:64:20: error: 'Long' was not declared in this scope
             return Long.parseLong(next());
                    ^
0_0_37512840_28726.cpp:64:40: error: 'next' was not declared in this scope
             return Long.parseLong(next());
                                        ^
0_0_37512840_28726.cpp: In member function 'double Main::FastReader::nextDouble()':
0_0_37512840_28726.cpp:67:20: error: 'Double' was not declared in this scope
             return Double.parseDouble(next());
                    ^
0_0_37512840_28726.cpp:67:44: error: 'next' was not declared in this scope
             return Double.parseDouble(next());
                                            ^


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-09-28 03:31:02, Gzip enabled