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_19805996_1739.cpp:1:2804: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/iostream>usin: Invalid argument
 #include<iostream>using namespace std;int main(){    int ca,cb,N,va,vb;    while(cin>>ca>>cb>>N)    {        if(cb==N)        { cout<<"fill B"<<endl;        }        else if(ca==N)        {            cout<<"fill A"<<endl;            cout<<"pour A B"<<endl;        }        else        {            va=vb=0;            if(ca<N)            {                while(1)                { if(vb==0)                    {                        vb=cb;                        cout<<"fill B"<<endl;                    }                    if(vb>ca-va)                                              //??b?????a?????????a??//                    {                        vb-=ca-va;                        va=ca;                        cout<<"pour B A"<<endl;                    }                    else                                                         //??b?????a??????????b??????a//                    {                        va+=vb;                        vb=0;                        cout<<"pour B A"<<endl;                    }                    if(vb==N)                                                                //??b??????cc???????//                    {                        break;                    }                     if(ca==va)                                                                 //??a????????a??//                    {                        va=0;                        cout<<"empty A"<<endl;                    }                }            }            else            {                while(1)                {                    if(va==0)                    {                        va=ca;                        cout<<"fill A"<<endl;                    }                    if(va>cb-vb)                                                                              //??a?????b?????????b??//                    {                        va-=cb-vb;                        vb=cb;                        cout<<"pour A B"<<endl;                    }                    else                                                                                          //??a?????b??????????a??????b//                    {                        vb+=va;                        va=0;                        cout<<"pour A B"<<endl;                    }                    if(vb==N)                                                                                    //??b??????cc???????//                    {                        break;                    }                    if(vb==cb)                                                                                    //??b????????b??//                    {                        vb=0;                        cout<<"empty B"<<endl;                    }                }            }        }        cout<<"success"<<endl;    }    return 0;}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
compilation terminated.


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-06-26 22:10:10, Gzip enabled