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_39299367_27921.cpp: In function 'int main()':
0_0_39299367_27921.cpp:30:106: error: 'v' was not declared in this scope
   30 |         if (dp[remain]!=9999) cout<<"The minimum amount of money in the piggy-bank is "<<dp[remainif (dp[v]!=Max) cout<<"The minimum amount of money in the piggy-bank is "<<dp[v]<<"."<<endl;
      |                                                                                                          ^
0_0_39299367_27921.cpp:30:110: error: 'Max' was not declared in this scope
   30 |         if (dp[remain]!=9999) cout<<"The minimum amount of money in the piggy-bank is "<<dp[remainif (dp[v]!=Max) cout<<"The minimum amount of money in the piggy-bank is "<<dp[v]<<"."<<endl;
      |                                                                                                              ^~~
0_0_39299367_27921.cpp:30:93: error: 'remainif' was not declared in this scope; did you mean 'remain'?
   30 |         if (dp[remain]!=9999) cout<<"The minimum amount of money in the piggy-bank is "<<dp[remainif (dp[v]!=Max) cout<<"The minimum amount of money in the piggy-bank is "<<dp[v]<<"."<<endl;
      |                                                                                             ^~~~~~~~
      |                                                                                             remain
0_0_39299367_27921.cpp:30:114: error: expected ']' before 'cout'
   30 |         if (dp[remain]!=9999) cout<<"The minimum amount of money in the piggy-bank is "<<dp[remainif (dp[v]!=Max) cout<<"The minimum amount of money in the piggy-bank is "<<dp[v]<<"."<<endl;
      |                                                                                                                  ^~~~~
      |                                                                                                                  ]
0_0_39299367_27921.cpp:32:1: error: expected primary-expression before ']' token
   32 | ]<<"."<<endl;
      | ^
0_0_39299367_27921.cpp:33:17: error: 'else' without a previous 'if'
   33 |                 else cout<<"This is impossible."<<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-05-28 22:54:59, Gzip enabled