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_39741721_32020\Main.java:12: 错误: 非法的类型开始
 } else {  
   ^
0_0_39741721_32020\Main.java:12: 错误: 需要';'
 } else {  
       ^
0_0_39741721_32020\Main.java:13: 错误: 方法声明无效; 需要返回类型
 processFILO(n, scanner);  
 ^
0_0_39741721_32020\Main.java:13: 错误: 需要<标识符>
 processFILO(n, scanner);  
              ^
0_0_39741721_32020\Main.java:13: 错误: 需要<标识符>
 processFILO(n, scanner);  
                       ^
0_0_39741721_32020\Main.java:15: 错误: 需要class, interface或enum
 }  
 ^
0_0_39741721_32020\Main.java:18: 错误: 需要class, interface或enum
 }  
 ^
0_0_39741721_32020\Main.java:22: 错误: 需要class, interface或enum
 String command = scanner.nextLine();  
 ^
0_0_39741721_32020\Main.java:23: 错误: 需要class, interface或enum
 if (command.startsWith("IN")) {  
 ^
0_0_39741721_32020\Main.java:25: 错误: 需要class, interface或enum
 queue.add(value); // 入队 } else if (command.equals("OUT")) {  
 ^
0_0_39741721_32020\Main.java:26: 错误: 需要class, interface或enum
 if (queue.isEmpty()) {  
 ^
0_0_39741721_32020\Main.java:28: 错误: 需要class, interface或enum
 System.out.println(queue.poll()); // 出队 }  
 ^
0_0_39741721_32020\Main.java:29: 错误: 需要class, interface或enum
 }  
 ^
0_0_39741721_32020\Main.java:35: 错误: 需要class, interface或enum
 String command = scanner.nextLine();  
 ^
0_0_39741721_32020\Main.java:36: 错误: 需要class, interface或enum
 if (command.startsWith("IN")) {  
 ^
0_0_39741721_32020\Main.java:38: 错误: 需要class, interface或enum
 stack.push(value); // 入栈 } else if (command.equals("OUT")) {  
 ^
0_0_39741721_32020\Main.java:39: 错误: 需要class, interface或enum
 if (stack.isEmpty()) {  
 ^
0_0_39741721_32020\Main.java:41: 错误: 需要class, interface或enum
 System.out.println(stack.pop()); // 出栈 }  
 ^
0_0_39741721_32020\Main.java:42: 错误: 需要class, interface或enum
 }  
 ^
19 个错误


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-01 14:22:50, Gzip enabled