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_20614300_2888.cpp:13:5: error: expected unqualified-id before '=' token
     =0;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>6||sum==0)            {                printf("Error!\n");                continue;            }            sum--;            int o=sum;            int flag=sum;            t=1;            sum=0;            for (int i=10;i>=6;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            int aa=sum;            if (flag==5)            {                t=1;                sum=0;                for (int i=15;i>=11;i--)                {                    int x=s1[i]-'0';                    sum+=t*x;                    t=t*2;                }                if (sum==0)                {                    printf("%s",ope[o]);                    printf(" R%d",aa);                    printf("\n");                    continue;                }                else                {                    printf("Error!\n");                    continue;                }            }            t=1;            sum=0;            for (int i=15;i>=11;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            printf("%s",ope[o]);            printf(" R%d",aa);            printf(",R%d\n",sum);        }    }    return 0;}
     ^
0_0_20614300_2888.cpp:13:8: error: 'i' does not name a type
     =0;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>6||sum==0)            {                printf("Error!\n");                continue;            }            sum--;            int o=sum;            int flag=sum;            t=1;            sum=0;            for (int i=10;i>=6;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            int aa=sum;            if (flag==5)            {                t=1;                sum=0;                for (int i=15;i>=11;i--)                {                    int x=s1[i]-'0';                    sum+=t*x;                    t=t*2;                }                if (sum==0)                {                    printf("%s",ope[o]);                    printf(" R%d",aa);                    printf("\n");                    continue;                }                else                {                    printf("Error!\n");                    continue;                }            }            t=1;            sum=0;            for (int i=15;i>=11;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            printf("%s",ope[o]);            printf(" R%d",aa);            printf(",R%d\n",sum);        }    }    return 0;}
        ^
0_0_20614300_2888.cpp:13:129: error: expected unqualified-id before 'if'
     =0;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>6||sum==0)            {                printf("Error!\n");                continue;            }            sum--;            int o=sum;            int flag=sum;            t=1;            sum=0;            for (int i=10;i>=6;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            int aa=sum;            if (flag==5)            {                t=1;                sum=0;                for (int i=15;i>=11;i--)                {                    int x=s1[i]-'0';                    sum+=t*x;                    t=t*2;                }                if (sum==0)                {                    printf("%s",ope[o]);                    printf(" R%d",aa);                    printf("\n");                    continue;                }                else                {                    printf("Error!\n");                    continue;                }            }            t=1;            sum=0;            for (int i=15;i>=11;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            printf("%s",ope[o]);            printf(" R%d",aa);            printf(",R%d\n",sum);        }    }    return 0;}
                                                                                                                                 ^
0_0_20614300_2888.cpp:13:245: error: 'sum' does not name a type
     =0;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>6||sum==0)            {                printf("Error!\n");                continue;            }            sum--;            int o=sum;            int flag=sum;            t=1;            sum=0;            for (int i=10;i>=6;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            int aa=sum;            if (flag==5)            {                t=1;                sum=0;                for (int i=15;i>=11;i--)                {                    int x=s1[i]-'0';                    sum+=t*x;                    t=t*2;                }                if (sum==0)                {                    printf("%s",ope[o]);                    printf(" R%d",aa);                    printf("\n");                    continue;                }                else                {                    printf("Error!\n");                    continue;                }            }            t=1;            sum=0;            for (int i=15;i>=11;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            printf("%s",ope[o]);            printf(" R%d",aa);            printf(",R%d\n",sum);        }    }    return 0;}
                                                                                                                                                                                                                                                     ^
0_0_20614300_2888.cpp:13:269: error: 'sum' was not declared in this scope
     =0;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>6||sum==0)            {                printf("Error!\n");                continue;            }            sum--;            int o=sum;            int flag=sum;            t=1;            sum=0;            for (int i=10;i>=6;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            int aa=sum;            if (flag==5)            {                t=1;                sum=0;                for (int i=15;i>=11;i--)                {                    int x=s1[i]-'0';                    sum+=t*x;                    t=t*2;                }                if (sum==0)                {                    printf("%s",ope[o]);                    printf(" R%d",aa);                    printf("\n");                    continue;                }                else                {                    printf("Error!\n");                    continue;                }            }            t=1;            sum=0;            for (int i=15;i>=11;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            printf("%s",ope[o]);            printf(" R%d",aa);            printf(",R%d\n",sum);        }    }    return 0;}
                                                                                                                                                                                                                                                                             ^
0_0_20614300_2888.cpp:13:294: error: 'sum' was not declared in this scope
     =0;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>6||sum==0)            {                printf("Error!\n");                continue;            }            sum--;            int o=sum;            int flag=sum;            t=1;            sum=0;            for (int i=10;i>=6;i--)            {                int x=s1[i]-'0';                sum+=t*x;                t=t*2;            }            if (sum>31||sum==0)            {                printf("Error!\n");                continue;            }            int aa=sum;            if (flag==5)            {                t=1;                sum=0;                for (int i=15;i>=11;i--)                {                    int x=s1[i]-'0';                    sum+=t*x;                    t=t*2;                }                if (sum==0)                {                    printf("%s",ope[o]);                    printf(" R%d",aa);                    printf("\n");                    continue;         


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-26 22:02:47, Gzip enabled