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;
^
|