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_30094505_10308.cpp: In function 'int main()':
0_0_30094505_10308.cpp:4:8: error: 'cin' was not declared in this scope
  while(cin>>S>>N>>M){
        ^
0_0_30094505_10308.cpp:8:5: error: 'cout' was not declared in this scope
     cout<<"2";
     ^
0_0_30094505_10308.cpp:11:14: error: 'min' was not declared in this scope
    if(min(N,M)==1){
              ^
0_0_30094505_10308.cpp:12:5: error: 'cout' was not declared in this scope
     cout<<(S-min(N,M))/2*2+1<<endl;
     ^
0_0_30094505_10308.cpp:12:31: error: 'endl' was not declared in this scope
     cout<<(S-min(N,M))/2*2+1<<endl;
                               ^
0_0_30094505_10308.cpp:15:16: error: 'min' was not declared in this scope
    if(S%min(N,M)==0&&(S/min(N,M))%2==0&&min(N,M)!=1){
                ^
0_0_30094505_10308.cpp:16:5: error: 'cout' was not declared in this scope
     cout<<(S/2-min(N,M))/min(N,M)*2+1<<endl;
     ^
0_0_30094505_10308.cpp:16:40: error: 'endl' was not declared in this scope
     cout<<(S/2-min(N,M))/min(N,M)*2+1<<endl;
                                        ^
0_0_30094505_10308.cpp:19:4: error: 'cout' was not declared in this scope
    cout<<"NO"<<endl;
    ^
0_0_30094505_10308.cpp:19:16: error: 'endl' was not declared in this scope
    cout<<"NO"<<endl;
                ^
0_0_30094505_10308.cpp:21:13: error: 'cout' was not declared in this scope
   if(S%2!=0)cout<<"NO"<<endl;
             ^
0_0_30094505_10308.cpp:21:25: error: 'endl' was not declared in this scope
   if(S%2!=0)cout<<"NO"<<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-09-30 04:28:31, Gzip enabled