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;
|