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 个错误
|