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_18475439_2851.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include#includebool f[10001],ff[1010001];int a[5];int main(){    int i,j,k,max,cas,t,x,count,flag;    scanf("%d",&cas);    while(cas--)    {    memset(f,0,sizeof(f));    k=0;    for(i=1;i4;i++)     {    scanf("%d",&x);        if(f[x]==0) {a[++k]=x;f[x]=1;}    } /*    for(i=1;i    printf("%d ",a[i]);    printf("\n\n");  */      memset(ff,0,sizeof(ff));    ff[0]=1;count=1;max=0;    for(i=1;i1000000;i++)    {      flag=0;      for(j=1;jk;j++)      {      if(i-a[j]=0&&ff[i-a[j]]==1)      {ff[i]=1;count++;flag=1;break;}            }          if(flag==0) {max=i;/*printf("%d\n",i);*/}    }        t=0;    for(i=1000000+1;i1010000;i++)    {       flag=0;       for(j=1;jk;j++)       if(i-a[j]=0&&ff[i-a[j]]) {flag=1;ff[i]=1;break;}       if(flag==0)       {t=1;break;}            }    if(t) printf("%d\n-1\n",1000001-count);    else printf("%d\n%d\n",1000001-count,max);    }    }/*3008 5 9 75 8 5 51938 1939 1940 1937*/                                   
         ^


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 01:03:28, Gzip enabled