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
|