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_20614162_13070.cpp:9:26: error: stray '#' in program
     using namespace std; #define LL __int64const int maxn=1e5+10;int main(){    int T;    scanf("%d",&T);    int tt=0;    while(T--)    {        LL n,t,ans=0;        LL i,j,k;        LL a,b,c,d,x;        scanf("%I64d",&n);        if(n>=3&&n<=6){printf("Case #%d: -1\n",++tt);continue;}        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                if((n-i)%j==0&&(n-i)/j>max(i,j))                {                    //printf("   %I64d+%I64d*%I64d\n",i,j,(n-i)/j);                    ans++;                }            }        }        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                for(k=3;k<=6;k++)                {                    a=i;b=j;c=k-n;                    d=(LL)sqrt(b*b-a*c*4+0.5);                    if(d*d!=b*b-a*c*4)continue;                    if((d-b)%(a*2))continue;                    x=(d-b)/(a*2);                    if(x>max(max(i,j),k))                    {                          ans++;                    }                }            }        }        for(i=2;i*i*i<=n;i++)        {            t=n;            while(t)            {                if(t%i<3||t%i>6)break;                t=t/i;            }            if(!t)            {                ans++;            }        }        printf("Case #%d: %I64d\n",++tt,ans);    }    return 0;}
                          ^
0_0_20614162_13070.cpp:9:27: error: 'define' does not name a type
     using namespace std; #define LL __int64const int maxn=1e5+10;int main(){    int T;    scanf("%d",&T);    int tt=0;    while(T--)    {        LL n,t,ans=0;        LL i,j,k;        LL a,b,c,d,x;        scanf("%I64d",&n);        if(n>=3&&n<=6){printf("Case #%d: -1\n",++tt);continue;}        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                if((n-i)%j==0&&(n-i)/j>max(i,j))                {                    //printf("   %I64d+%I64d*%I64d\n",i,j,(n-i)/j);                    ans++;                }            }        }        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                for(k=3;k<=6;k++)                {                    a=i;b=j;c=k-n;                    d=(LL)sqrt(b*b-a*c*4+0.5);                    if(d*d!=b*b-a*c*4)continue;                    if((d-b)%(a*2))continue;                    x=(d-b)/(a*2);                    if(x>max(max(i,j),k))                    {                          ans++;                    }                }            }        }        for(i=2;i*i*i<=n;i++)        {            t=n;            while(t)            {                if(t%i<3||t%i>6)break;                t=t/i;            }            if(!t)            {                ans++;            }        }        printf("Case #%d: %I64d\n",++tt,ans);    }    return 0;}
                           ^
0_0_20614162_13070.cpp: In function 'int main()':
0_0_20614162_13070.cpp:9:146: error: 'LL' was not declared in this scope
     using namespace std; #define LL __int64const int maxn=1e5+10;int main(){    int T;    scanf("%d",&T);    int tt=0;    while(T--)    {        LL n,t,ans=0;        LL i,j,k;        LL a,b,c,d,x;        scanf("%I64d",&n);        if(n>=3&&n<=6){printf("Case #%d: -1\n",++tt);continue;}        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                if((n-i)%j==0&&(n-i)/j>max(i,j))                {                    //printf("   %I64d+%I64d*%I64d\n",i,j,(n-i)/j);                    ans++;                }            }        }        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                for(k=3;k<=6;k++)                {                    a=i;b=j;c=k-n;                    d=(LL)sqrt(b*b-a*c*4+0.5);                    if(d*d!=b*b-a*c*4)continue;                    if((d-b)%(a*2))continue;                    x=(d-b)/(a*2);                    if(x>max(max(i,j),k))                    {                          ans++;                    }                }            }        }        for(i=2;i*i*i<=n;i++)        {            t=n;            while(t)            {                if(t%i<3||t%i>6)break;                t=t/i;            }            if(!t)            {                ans++;            }        }        printf("Case #%d: %I64d\n",++tt,ans);    }    return 0;}
                                                                                                                                                  ^
0_0_20614162_13070.cpp:9:170: error: expected ';' before 'i'
     using namespace std; #define LL __int64const int maxn=1e5+10;int main(){    int T;    scanf("%d",&T);    int tt=0;    while(T--)    {        LL n,t,ans=0;        LL i,j,k;        LL a,b,c,d,x;        scanf("%I64d",&n);        if(n>=3&&n<=6){printf("Case #%d: -1\n",++tt);continue;}        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                if((n-i)%j==0&&(n-i)/j>max(i,j))                {                    //printf("   %I64d+%I64d*%I64d\n",i,j,(n-i)/j);                    ans++;                }            }        }        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                for(k=3;k<=6;k++)                {                    a=i;b=j;c=k-n;                    d=(LL)sqrt(b*b-a*c*4+0.5);                    if(d*d!=b*b-a*c*4)continue;                    if((d-b)%(a*2))continue;                    x=(d-b)/(a*2);                    if(x>max(max(i,j),k))                    {                          ans++;                    }                }            }        }        for(i=2;i*i*i<=n;i++)        {            t=n;            while(t)            {                if(t%i<3||t%i>6)break;                t=t/i;            }            if(!t)            {                ans++;            }        }        printf("Case #%d: %I64d\n",++tt,ans);    }    return 0;}
                                                                                                                                                                          ^
0_0_20614162_13070.cpp:9:187: error: expected ';' before 'a'
     using namespace std; #define LL __int64const int maxn=1e5+10;int main(){    int T;    scanf("%d",&T);    int tt=0;    while(T--)    {        LL n,t,ans=0;        LL i,j,k;        LL a,b,c,d,x;        scanf("%I64d",&n);        if(n>=3&&n<=6){printf("Case #%d: -1\n",++tt);continue;}        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                if((n-i)%j==0&&(n-i)/j>max(i,j))                {                    //printf("   %I64d+%I64d*%I64d\n",i,j,(n-i)/j);                    ans++;                }            }        }        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                for(k=3;k<=6;k++)                {                    a=i;b=j;c=k-n;                    d=(LL)sqrt(b*b-a*c*4+0.5);                    if(d*d!=b*b-a*c*4)continue;                    if((d-b)%(a*2))continue;                    x=(d-b)/(a*2);                    if(x>max(max(i,j),k))                    {                          ans++;                    }                }            }        }        for(i=2;i*i*i<=n;i++)        {            t=n;            while(t)            {                if(t%i<3||t%i>6)break;                t=t/i;            }            if(!t)            {                ans++;            }        }        printf("Case #%d: %I64d\n",++tt,ans);    }    return 0;}
                                                                                                                                                                                           ^
0_0_20614162_13070.cpp:9:220: error: 'n' was not declared in this scope
     using namespace std; #define LL __int64const int maxn=1e5+10;int main(){    int T;    scanf("%d",&T);    int tt=0;    while(T--)    {        LL n,t,ans=0;        LL i,j,k;        LL a,b,c,d,x;        scanf("%I64d",&n);        if(n>=3&&n<=6){printf("Case #%d: -1\n",++tt);continue;}        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                if((n-i)%j==0&&(n-i)/j>max(i,j))                {                    //printf("   %I64d+%I64d*%I64d\n",i,j,(n-i)/j);                    ans++;                }            }        }        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                for(k=3;k<=6;k++)                {                    a=i;b=j;c=k-n;                    d=(LL)sqrt(b*b-a*c*4+0.5);                    if(d*d!=b*b-a*c*4)continue;                    if((d-b)%(a*2))continue;                    x=(d-b)/(a*2);                    if(x>max(max(i,j),k))                    {                          ans++;                    }                }            }        }        for(i=2;i*i*i<=n;i++)        {            t=n;            while(t)            {                if(t%i<3||t%i>6)break;                t=t/i;            }            if(!t)            {                ans++;            }        }        printf("Case #%d: %I64d\n",++tt,ans);    }    return 0;}
                                                                                                                                                                                                                            ^
0_0_20614162_13070.cpp:9:298: error: 'i' was not declared in this scope
     using namespace std; #define LL __int64const int maxn=1e5+10;int main(){    int T;    scanf("%d",&T);    int tt=0;    while(T--)    {        LL n,t,ans=0;        LL i,j,k;        LL a,b,c,d,x;        scanf("%I64d",&n);        if(n>=3&&n<=6){printf("Case #%d: -1\n",++tt);continue;}        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                if((n-i)%j==0&&(n-i)/j>max(i,j))                {                    //printf("   %I64d+%I64d*%I64d\n",i,j,(n-i)/j);                    ans++;                }            }        }        for(i=3;i<=6;i++)        {            for(j=3;j<=6;j++)            {                for(k=3;k<=6;k++)                {                    a=i;b=j;c=k-n;                    d=(LL)sqrt(b*b-a*c*4+0.5);                    if(d*d!


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-23 03:12:15, Gzip enabled