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_39744833_20461\Main.java:4: 错误: 需要';'
{ public static boolean Same(String s1, String s2)      //比较两个字符串的值是否相同{
                                                  ^
0_0_39744833_20461\Main.java:7: 错误: 需要class, interface或enum
public static void main(String[] args) throws IOException{
              ^
0_0_39744833_20461\Main.java:9: 错误: 需要class, interface或enum
Queue < Integer > qu=new LinkedList< Integer >();
^
0_0_39744833_20461\Main.java:10: 错误: 需要class, interface或enum
Stack < Integer > st=new Stack < Integer >();
^
0_0_39744833_20461\Main.java:11: 错误: 需要class, interface或enum
int T,n,num;
^
0_0_39744833_20461\Main.java:12: 错误: 需要class, interface或enum
String mode,op;
^
0_0_39744833_20461\Main.java:13: 错误: 需要class, interface或enum
T=fin.nextInt();
^
0_0_39744833_20461\Main.java:14: 错误: 需要class, interface或enum
while(T-->0)                    //处理T个测试用例{   qu.clear();                 //队列清空st.clear();                     //栈清空n=fin. nextInt();               //读取nmode=fin. next();               //读取类型if(Same(mode,"FIFO"))           //FIFO类型{        for(int i=0;i<n;i++)
^
0_0_39744833_20461\Main.java:16: 错误: 需要class, interface或enum
else                             //OUT命令{   if(qu.isEmpty())            //队qu空System. out. println("None");
^
0_0_39744833_20461\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_39744833_20461\Main.java:24: 错误: 需要class, interface或enum
else                             //OUT命令{        if(st.empty())         //栈st空System.out. println("None");
^
11 个错误


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 21:29:29, Gzip enabled