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_33562848_5638.cpp:3:1538: error: too many initializers for 'int [151]'
 int b[151]={0,0,1,1,1,2,2,3,3,4,5,6,7,9,10,12,14,17,19,23,26,30,35,40,46,52,60,67,77,87,98,111,124,140,157,175,197,219,244,272,302,336,372,413,456,504,557,614,677,744,819,899,987,1083,1186,1298,1420,1552,1695,1850,2018,2198,2394,2605,2833,3079,3344,3630,3936,4268,4624,5007,5419,5861,6336,6845,7393,7979,8608,9282,10003,10776,11603,12488,13435,14445,15527,16681,17914,19232,20636,22134,23732,25436,27251,29186,31246,33439,35772,38257,40899,43709,46696,49871,53243,56826,60631,64671,68957,73506,78331,83447,88874,94625,100719,107175,114014,121255,128923,137038,145627,154709,164320,174482,185225,196583,208585,221265,234658,248807,263745,279516,296161,313727,332258,351808,372427,394170,417088,441250,466711,493538,521804,551573,582925,615933,650686,687262,725757,766262,808872,1,1,1,2,2,3,3,4,5,6,7,9,10,12,14,17,19,23,26,30,35,40,46,52,60,67,77,87,98,111,124,140,157,175,197,219,244,272,302,336,372,413,456,504,557,614,677,744,819,899,987,1083,1186,1298,1420,1552,1695,1850,2018,2198,2394,2605,2833,3079,3344,3630,3936,4268,4624,5007,5419,5861,6336,6845,7393,7979,8608,9282,10003,10776,11603,12488,13435,14445,15527,16681,17914,19232,20636,22134,23732,25436,27251,29186,31246,33439,35772,38257,40899,43709,46696,49871,53243,56826,60631,64671,68957,73506,78331,83447,88874,94625,100719,107175,114014,121255,128923,137038,145627,154709,164320,174482,185225,196583,208585,221265,234658,248807,263745,279516,296161,313727,332258,351808,372427,394170,417088,441250,466711,493538,521804,551573,582925,615933,650686,687262,725757,766262,808872};
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
0_0_33562848_5638.cpp: In function 'void dfs(int, int)':
0_0_33562848_5638.cpp:12:16: error: 'ans' was not declared in this scope
  for(int i=y;i<ans;i++){
                ^
0_0_33562848_5638.cpp:13:9: error: 'a' was not declared in this scope
   dfs(x+a[i],i);
         ^


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:30:43, Gzip enabled