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_39074639_28787.cpp: In function 'int main()':
0_0_39074639_28787.cpp:26:38: error: expression cannot be used as a function
   26 |                         if (need < 0 (need / 100 > 0 && need % 100 != 0)) {
      |                                    ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_39074639_28787.cpp:32:47: error: expected ')' before 'usedCoins'
   32 |                     if (valid && (result == -1 usedCoins < result)) {
      |                                  ~            ^~~~~~~~~~
      |                                               )
0_0_39074639_28787.cpp:34:22: error: expected ')' before '}' token
   34 |                     }
      |                      ^
      |                      )
   35 |                 }
      |                 ~     
0_0_39074639_28787.cpp:32:24: note: to match this '('
   32 |                     if (valid && (result == -1 usedCoins < result)) {
      |                        ^
0_0_39074639_28787.cpp:35:17: error: expected primary-expression before '}' token
   35 |                 }
      |                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 03:32:37, Gzip enabled