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_21595027_28789.cpp:15:16: error: stray '#' in program
    if(str[i]=='A')     R1=M1;
                ^
0_0_21595027_28789.cpp:15:22: error: stray '#' in program
    if(str[i]=='A')     R1=M1;
                      ^
0_0_21595027_28789.cpp:16:21: error: stray '#' in program
    else if(str[i]=='B')  R2=M2;
                     ^
0_0_21595027_28789.cpp:16:27: error: stray '#' in program
    else if(str[i]=='B')  R2=M2;
                           ^
0_0_21595027_28789.cpp:17:21: error: stray '#' in program
    else if(str[i]=='C')  M1=R3;
                     ^
0_0_21595027_28789.cpp:17:27: error: stray '#' in program
    else if(str[i]=='C')  M1=R3;
                           ^
0_0_21595027_28789.cpp:18:21: error: stray '#' in program
    else if(str[i]=='D')  M2=R3;
                     ^
0_0_21595027_28789.cpp:18:27: error: stray '#' in program
    else if(str[i]=='D')  M2=R3;
                           ^
0_0_21595027_28789.cpp:19:21: error: stray '#' in program
    else if(str[i]=='E')  R3=R1+R2;
                     ^
0_0_21595027_28789.cpp:19:27: error: stray '#' in program
    else if(str[i]=='E')  R3=R1+R2;
                           ^
0_0_21595027_28789.cpp:20:21: error: stray '#' in program
    else if(str[i]=='F')  R3=R1-R2; 
                     ^
0_0_21595027_28789.cpp:20:27: error: stray '#' in program
    else if(str[i]=='F')  R3=R1-R2; 
                           ^
0_0_21595027_28789.cpp: In function 'int main()':
0_0_21595027_28789.cpp:15:17: error: lvalue required as unary '&' operand
    if(str[i]=='A')     R1=M1;
                 ^
0_0_21595027_28789.cpp:15:19: error: expected ')' before ';' token
    if(str[i]=='A')     R1=M1;
                   ^
0_0_21595027_28789.cpp:15:20: error: 'A' was not declared in this scope
    if(str[i]=='A')     R1=M1;
                    ^
0_0_21595027_28789.cpp:15:26: error: expected primary-expression before ')' token
    if(str[i]=='A')     R1=M1;
                          ^
0_0_21595027_28789.cpp:16:4: error: 'else' without a previous 'if'
    else if(str[i]=='B')  R2=M2;
    ^
0_0_21595027_28789.cpp:16:22: error: lvalue required as unary '&' operand
    else if(str[i]=='B')  R2=M2;
                      ^
0_0_21595027_28789.cpp:16:24: error: expected ')' before ';' token
    else if(str[i]=='B')  R2=M2;
                        ^
0_0_21595027_28789.cpp:16:25: error: 'B' was not declared in this scope
    else if(str[i]=='B')  R2=M2;
                         ^
0_0_21595027_28789.cpp:16:31: error: expected primary-expression before ')' token
    else if(str[i]=='B')  R2=M2;
                               ^
0_0_21595027_28789.cpp:17:4: error: 'else' without a previous 'if'
    else if(str[i]=='C')  M1=R3;
    ^
0_0_21595027_28789.cpp:17:22: error: lvalue required as unary '&' operand
    else if(str[i]=='C')  M1=R3;
                      ^
0_0_21595027_28789.cpp:17:24: error: expected ')' before ';' token
    else if(str[i]=='C')  M1=R3;
                        ^
0_0_21595027_28789.cpp:17:25: error: 'C' was not declared in this scope
    else if(str[i]=='C')  M1=R3;
                         ^
0_0_21595027_28789.cpp:17:31: error: expected primary-expression before ')' token
    else if(str[i]=='C')  M1=R3;
                               ^
0_0_21595027_28789.cpp:18:4: error: 'else' without a previous 'if'
    else if(str[i]=='D')  M2=R3;
    ^
0_0_21595027_28789.cpp:18:22: error: lvalue required as unary '&' operand
    else if(str[i]=='D')  M2=R3;
                      ^
0_0_21595027_28789.cpp:18:24: error: expected ')' before ';' token
    else if(str[i]=='D')  M2=R3;
                        ^
0_0_21595027_28789.cpp:18:25: error: 'D' was not declared in this scope
    else if(str[i]=='D')  M2=R3;
                         ^
0_0_21595027_28789.cpp:18:31: error: expected primary-expression before ')' token
    else if(str[i]=='D')  M2=R3;
                               ^
0_0_21595027_28789.cpp:19:4: error: 'else' without a previous 'if'
    else if(str[i]=='E')  R3=R1+R2;
    ^
0_0_21595027_28789.cpp:19:22: error: lvalue required as unary '&' operand
    else if(str[i]=='E')  R3=R1+R2;
                      ^
0_0_21595027_28789.cpp:19:24: error: expected ')' before ';' token
    else if(str[i]=='E')  R3=R1+R2;
                        ^
0_0_21595027_28789.cpp:19:25: error: 'E' was not declared in this scope
    else if(str[i]=='E')  R3=R1+R2;
                         ^
0_0_21595027_28789.cpp:19:31: error: expected primary-expression before ')' token
    else if(str[i]=='E')  R3=R1+R2;
                               ^
0_0_21595027_28789.cpp:20:4: error: 'else' without a previous 'if'
    else if(str[i]=='F')  R3=R1-R2; 
    ^
0_0_21595027_28789.cpp:20:22: error: lvalue required as unary '&' operand
    else if(str[i]=='F')  R3=R1-R2; 
                      ^
0_0_21595027_28789.cpp:20:24: error: expected ')' before ';' token
    else if(str[i]=='F')  R3=R1-R2; 
                        ^
0_0_21595027_28789.cpp:20:25: error: 'F' was not declared in this scope
    else if(str[i]=='F')  R3=R1-R2; 
                         ^
0_0_21595027_28789.cpp:20:31: error: expected primary-expression before ')' token
    else if(str[i]=='F')  R3=R1-R2; 
                               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 18:31:56, Gzip enabled