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_33849964_15625.cpp:65:11: error: 'MAXL' was not declared in this scope
 int digit[MAXL]; //将n的各位拆分
           ^
0_0_33849964_15625.cpp: In function 'void output(int, int)':
0_0_33849964_15625.cpp:77:9: error: 'digit' was not declared in this scope
         digit[MAXL - 1] = 0;
         ^
0_0_33849964_15625.cpp:77:15: error: 'MAXL' was not declared in this scope
         digit[MAXL - 1] = 0;
               ^
0_0_33849964_15625.cpp:80:22: error: 'MAXL' was not declared in this scope
         for (int i = MAXL - 1; n > 0; i--)
                      ^
0_0_33849964_15625.cpp:82:13: error: 'digit' was not declared in this scope
             digit[i] = n % 10;
             ^
0_0_33849964_15625.cpp:90:29: error: 'MAXL' was not declared in this scope
         for (int i = 0; i < MAXL; i++)
                             ^
0_0_33849964_15625.cpp:91:17: error: 'digit' was not declared in this scope
             if (digit[i] != -1)
                 ^
0_0_33849964_15625.cpp: In function 'int main()':
0_0_33849964_15625.cpp:126:16: error: 'digit' was not declared in this scope
         memset(digit, -1, sizeof(digit));
                ^


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-10-06 17:09:23, Gzip enabled