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_32140672_3902.cpp:1:1: error: 'nt' does not name a type
 nt ans[25] = {0 , 0 , 0 , 4 , 6 , 0 , 0 , 12 , 40 , 0 , 0 , 171 , 410 , 0 , 0 , 1896 , 5160 , 0 , 0 , 32757 , 59984 , 0 , 0 , 431095 , 822229};
 ^
0_0_32140672_3902.cpp: In function 'int main()':
0_0_32140672_3902.cpp:5:26: error: 'scanf' was not declared in this scope
     while(scanf("%d" , &n) != EOF && n){
                          ^
0_0_32140672_3902.cpp:5:31: error: 'EOF' was not declared in this scope
     while(scanf("%d" , &n) != EOF && n){
                               ^
0_0_32140672_3902.cpp:6:30: error: 'ans' was not declared in this scope
         printf("%d %d\n",n , ans[n]);
                              ^
0_0_32140672_3902.cpp:6:36: error: 'printf' was not declared in this scope
         printf("%d %d\n",n , ans[n]);
                                    ^


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-26 16:42:38, Gzip enabled