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_36647553_1023.cpp: In function 'int main()':
0_0_36647553_1023.cpp:5:106: error: expected '}' at end of input
 int main(){ int n , p , q; while(cin >> n >> p >> q){ int mod = n % (p + q) ; if(mod == 0) { mod = p + q ; // 两者先后取的数量刚好可以构成循环,即先取的胜利  } if(mod <= p){ cout<<"LOST"<<endl ; }else{ cout<<"WIN"<<endl ; } } }
                                                                                                          ^
0_0_36647553_1023.cpp:5:106: error: expected '}' at end of input
0_0_36647553_1023.cpp:5:106: error: expected '}' at end of input


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-17 03:19:21, Gzip enabled