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_36866440_18756\Main.java:4: 错误: 对于Scanner(PrintStream), 找不到合适的构造器
        Scanner sc=new Scanner(System.out);
                   ^
    构造器 Scanner.Scanner(Readable)不适用
      (参数不匹配; PrintStream无法转换为Readable)
    构造器 Scanner.Scanner(InputStream)不适用
      (参数不匹配; PrintStream无法转换为InputStream)
    构造器 Scanner.Scanner(File)不适用
      (参数不匹配; PrintStream无法转换为File)
    构造器 Scanner.Scanner(Path)不适用
      (参数不匹配; PrintStream无法转换为Path)
    构造器 Scanner.Scanner(String)不适用
      (参数不匹配; PrintStream无法转换为String)
    构造器 Scanner.Scanner(ReadableByteChannel)不适用
      (参数不匹配; PrintStream无法转换为ReadableByteChannel)
注: 某些消息已经过简化; 请使用 -Xdiags:verbose 重新编译以获得完整输出
1 个错误


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-07-06 07:07:52, Gzip enabled