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_39063008_5952.cpp: In function 'int hanoi(int, long long unsigned int)':
0_0_39063008_5952.cpp:5:13: error: 'a' was not declared in this scope
    5 |     if (m > a[n - 1])
      |             ^
0_0_39063008_5952.cpp:11:9: error: 'r' was not declared in this scope
   11 |         r = n;
      |         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 19:34:39, Gzip enabled