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_29473730_31709.cpp: In function 'int main()':
0_0_29473730_31709.cpp:7:42: error: 'scanf' was not declared in this scope
         while(scanf("%d%d%d",&G , &B , &S) != EOF){
                                          ^
0_0_29473730_31709.cpp:7:47: error: 'EOF' was not declared in this scope
         while(scanf("%d%d%d",&G , &B , &S) != EOF){
                                               ^
0_0_29473730_31709.cpp:9:43: error: 'memset' was not declared in this scope
             memset(Back , 0 , sizeof(Back));
                                           ^
0_0_29473730_31709.cpp:44:79: error: 'max' was not declared in this scope
                         if(bonus > 0) dp[i] = max(dp[i] , bonus + dp[i^(1<<j)]);//如果能获得魔法,下轮依然是本人
                                                                               ^
0_0_29473730_31709.cpp:45:68: error: 'max' was not declared in this scope
                             else dp[i] = max(dp[i] , - dp[i^(1<<j)]);//没有获得魔法石,下轮是对手
                                                                    ^
0_0_29473730_31709.cpp:49:13: error: 'cout' was not declared in this scope
             cout << dp[(1<<B) - 1] << endl;
             ^
0_0_29473730_31709.cpp:49:39: error: 'endl' was not declared in this scope
             cout << dp[(1<<B) - 1] << endl;
                                       ^


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-29 20:52:49, Gzip enabled