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_20614578_27887.cpp:9:11: error: stray '#' in program
     b?a:b)#define Min(a,b) (a<b?a:b)#define MAX 999999999#define LL long long#define M 6666666using namespace std;int main(){    int n,m,i,j,k,l,cas=1;    while(~scanf("%d%d",&n,&m))    {        if(n==-1&&m==-1)break;         if(m==0)         {              if(n%11==0)printf("Case #%d: Yes\n",cas++);            else printf("Case #%d: No\n",cas++);            continue;         }        k=n;        l=0;        while(k>0)        {            l+=k%10;            k/=10;        }        while(m--)        {            k=l;            while(k>0)            {                k/=10;                n*=10;            }            n=(n+l)%11;            k=l;            while(k>0)            {                l+=k%10;                k/=10;            }        }        if(n==0)printf("Case #%d: Yes\n",cas++);        else printf("Case #%d: No\n",cas++);    }    return 0;}
           ^
0_0_20614578_27887.cpp:9:37: error: stray '#' in program
     b?a:b)#define Min(a,b) (a<b?a:b)#define MAX 999999999#define LL long long#define M 6666666using namespace std;int main(){    int n,m,i,j,k,l,cas=1;    while(~scanf("%d%d",&n,&m))    {        if(n==-1&&m==-1)break;         if(m==0)         {              if(n%11==0)printf("Case #%d: Yes\n",cas++);            else printf("Case #%d: No\n",cas++);            continue;         }        k=n;        l=0;        while(k>0)        {            l+=k%10;            k/=10;        }        while(m--)        {            k=l;            while(k>0)            {                k/=10;                n*=10;            }            n=(n+l)%11;            k=l;            while(k>0)            {                l+=k%10;                k/=10;            }        }        if(n==0)printf("Case #%d: Yes\n",cas++);        else printf("Case #%d: No\n",cas++);    }    return 0;}
                                     ^
0_0_20614578_27887.cpp:9:58: error: stray '#' in program
     b?a:b)#define Min(a,b) (a<b?a:b)#define MAX 999999999#define LL long long#define M 6666666using namespace std;int main(){    int n,m,i,j,k,l,cas=1;    while(~scanf("%d%d",&n,&m))    {        if(n==-1&&m==-1)break;         if(m==0)         {              if(n%11==0)printf("Case #%d: Yes\n",cas++);            else printf("Case #%d: No\n",cas++);            continue;         }        k=n;        l=0;        while(k>0)        {            l+=k%10;            k/=10;        }        while(m--)        {            k=l;            while(k>0)            {                k/=10;                n*=10;            }            n=(n+l)%11;            k=l;            while(k>0)            {                l+=k%10;                k/=10;            }        }        if(n==0)printf("Case #%d: Yes\n",cas++);        else printf("Case #%d: No\n",cas++);    }    return 0;}
                                                          ^
0_0_20614578_27887.cpp:9:78: error: stray '#' in program
     b?a:b)#define Min(a,b) (a<b?a:b)#define MAX 999999999#define LL long long#define M 6666666using namespace std;int main(){    int n,m,i,j,k,l,cas=1;    while(~scanf("%d%d",&n,&m))    {        if(n==-1&&m==-1)break;         if(m==0)         {              if(n%11==0)printf("Case #%d: Yes\n",cas++);            else printf("Case #%d: No\n",cas++);            continue;         }        k=n;        l=0;        while(k>0)        {            l+=k%10;            k/=10;        }        while(m--)        {            k=l;            while(k>0)            {                k/=10;                n*=10;            }            n=(n+l)%11;            k=l;            while(k>0)            {                l+=k%10;                k/=10;            }        }        if(n==0)printf("Case #%d: Yes\n",cas++);        else printf("Case #%d: No\n",cas++);    }    return 0;}
                                                                              ^
0_0_20614578_27887.cpp:9:5: error: 'b' does not name a type
     b?a:b)#define Min(a,b) (a<b?a:b)#define MAX 999999999#define LL long long#define M 6666666using namespace std;int main(){    int n,m,i,j,k,l,cas=1;    while(~scanf("%d%d",&n,&m))    {        if(n==-1&&m==-1)break;         if(m==0)         {              if(n%11==0)printf("Case #%d: Yes\n",cas++);            else printf("Case #%d: No\n",cas++);            continue;         }        k=n;        l=0;        while(k>0)        {            l+=k%10;            k/=10;        }        while(m--)        {            k=l;            while(k>0)            {                k/=10;                n*=10;            }            n=(n+l)%11;            k=l;            while(k>0)            {                l+=k%10;                k/=10;            }        }        if(n==0)printf("Case #%d: Yes\n",cas++);        else printf("Case #%d: No\n",cas++);    }    return 0;}
     ^


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-17 01:26:10, Gzip enabled