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_20638857_22723.cpp:1:1641: fatal error: GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stdc++.h>usin: Invalid argument
 #include<bits/stdc++.h>using namespace std;const int MAXN=0x3f3f3f;char s[MAXN],ss[MAXN];int main(){    while(scanf("%s %s",s,ss)!=EOF)    {        int x,y,xx,yy,l1=strlen(s),l2=strlen(ss),flag=1,temp=0,sis0=0,ssis0=0;        for(int i=0;i<l1;i++)        {            if(s[i]!='0')            {                x=i;                if(s[i]=='.') sis0=0;                else sis0=1;                break;            }            else sis0=0;        }        for(int i=0;i<l2;i++)        {            if(ss[i]!='0')            {                y=i;                if(ss[i]=='.') ssis0=0;                else ssis0=1;                break;            }            else ssis0=0;        }        //cout<<sis0<<" "<<ssis0<<endl;        if(sis0==0&&ssis0==0)        {            puts("YES");            continue;        }        for(int i=x,j=y;;i++,j++)        {            if(s[i]!=ss[j])            {                flag=0;                break;            }            if(i==l1-1&&j!=l2-1) {temp=1;xx=j;break;}            if(i!=l1-1&&j==l2-1) {temp=2;yy=i;break;}            if(i==l1-1&&j==l2-1&&flag) {break;}        }        if(temp==1)        {            for(int i=xx;i<l2-1;i++)            {                if(s[i]!='0'||s[i]!='.')                {                    flag=0;                    break;                }            }        }        if(temp==2)        {            for(int i=yy;i<l2-1;i++)            {                if(ss[i]!='0'||ss[i]!='.')                {                    flag=0;                    break;                }            }        }        if(flag) puts("YES");        else puts("NO");    }    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-12-02 20:28:41, Gzip enabled