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_39777712_1273\Main.java:1: 错误: 解析时已到达文件结尾
public class Main {public static void move( int n, String from, String buffer, String to) {//第一步: 递归结束的条件if (n == 1) {System. out. println("from" + from + "to" + to);return;}// n-1 个圆盘从 from - > buffermove(n - 1, from, to, buffer);//将 1 个圆盘从 from - > tomove(1, from, buffer, to);//将 n-1 个圆盘从 buffer - > tomove(n - 1, buffer, from, to);}public static void main( String[] args) {Hanoi. move(3, "石柱1", "石柱2", "石柱3");}}
                                                                                           ^
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-11-30 12:31:28, Gzip enabled