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_25243419_28381.cpp: In function 'int result(int)':
0_0_25243419_28381.cpp:4:9: error: 'dp' was not declared in this scope
     if (dp[a]!=-1)
         ^
0_0_25243419_28381.cpp:11:33: error: 'memset' was not declared in this scope
     memset(zhi,false,sizeof(zhi));
                                 ^
0_0_25243419_28381.cpp:38:17: error: 'dp' was not declared in this scope
                 dp[a]=0;
                 ^
0_0_25243419_28381.cpp:46:26: error: 'beishu' was not declared in this scope
             zhi[result(a+beishu[j]-beishu[i])]=true;
                          ^
0_0_25243419_28381.cpp:54:5: error: 'dp' was not declared in this scope
     dp[a]=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-12-05 06:53:09, Gzip enabled