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_39583259_30807.cpp: In function 'void solve()':
0_0_39583259_30807.cpp:54:41: error: expected ';' before 'cout'
   54 |         if((sum-cnt<=1000000000&&cnt>=0)
      |                                         ^
      |                                         ;
   55 |         cout<<sum-cnt<<'\n';
      |         ~~~~                             
0_0_39583259_30807.cpp:57:9: error: expected primary-expression before 'else'
   57 |         else cout<<"Impossible\n";
      |         ^~~~
0_0_39583259_30807.cpp:55:29: error: expected ')' before 'else'
   55 |         cout<<sum-cnt<<'\n';
      |                             ^
      |                             )
   56 |         //else if(cnt==-1&&sum<=1000000000)) cout<<sum<<'\n';
   57 |         else cout<<"Impossible\n";
      |         ~~~~                 
0_0_39583259_30807.cpp:54:11: note: to match this '('
   54 |         if((sum-cnt<=1000000000&&cnt>=0)
      |           ^


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-09-20 13:44:40, Gzip enabled