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_16387898_17575.cpp:2:1723: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/iostream>usin: Invalid argument
 #include<iostream>using namespace std;//用位表示,如果某个显示是属于某个数字的且这个数组是属于这个显示和bug的并集//那么有可以取该中数字,这里的属于就是“|” char c[11];int a[11];//存显示的数据 int b[11];//模板 int bug;int s[11];//模板 int main(){     int i,j,k,t,r,n,count=1,len,temp,x,y;     s[1]=1;s[2]=2;s[3]=4;s[4]=8;s[5]=16;s[6]=32;s[7]=64;//abcdefg     b[0]=119;b[1]=36;b[2]=93;b[3]=109;b[4]=46;b[5]=107;b[6]=123;b[7]=37;b[8]=127;b[9]=111;     while(scanf("%d",&n)!=EOF)     {           if(n==-1)break;           memset(a,0,sizeof(a));           scanf("%s",c);           len=strlen(c);           bug=0;           for(i=0;i<len;i++)           {               if(c[i]!=’-')               {                  bug=bug+s[c[i]-’a'+1];                  }                             }     //           cout<<bug<<endl;                for(i=1;i<=n;i++)           {               scanf("%s",c);               len=strlen(c);               for(j=0;j<len;j++)               {                   if(c[j]!=’-')a[i]+=s[c[j]-’a'+1];                                  }//               cout<<"a["<<i<<"]="<<a[i]<<endl;                                 }               r=1;           for(i=1;i<=n;i++)           {               x=(bug|a[i]);               t=0;               for(j=0;j<=9;j++)               {                   y=(b[j]|a[i]);                   temp=(x|b[j]);                                 if((y==b[j])&&(x==temp))t++;                                 }                             r=r*t;                    }                printf("Case %d: %d\n",count++,r);                                             }     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-11-30 09:19:29, Gzip enabled