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_21599895_12394.cpp:42:26: error: stray '#' in program
             if(cc[0] == 'B')
                          ^
0_0_21599895_12394.cpp:42:32: error: stray '#' in program
             if(cc[0] == 'B')
                                ^
0_0_21599895_12394.cpp:46:31: error: stray '#' in program
             else if(cc[0] == 'A')
                               ^
0_0_21599895_12394.cpp:46:37: error: stray '#' in program
             else if(cc[0] == 'A')
                                     ^
0_0_21599895_12394.cpp: In function 'int main()':
0_0_21599895_12394.cpp:42:27: error: lvalue required as unary '&' operand
             if(cc[0] == 'B')
                           ^
0_0_21599895_12394.cpp:42:29: error: expected ')' before ';' token
             if(cc[0] == 'B')
                             ^
0_0_21599895_12394.cpp:42:30: error: 'B' was not declared in this scope
             if(cc[0] == 'B')
                              ^
0_0_21599895_12394.cpp:42:36: error: expected primary-expression before ')' token
             if(cc[0] == 'B')
                                    ^
0_0_21599895_12394.cpp:46:13: error: 'else' without a previous 'if'
             else if(cc[0] == 'A')
             ^
0_0_21599895_12394.cpp:46:32: error: lvalue required as unary '&' operand
             else if(cc[0] == 'A')
                                ^
0_0_21599895_12394.cpp:46:34: error: expected ')' before ';' token
             else if(cc[0] == 'A')
                                  ^
0_0_21599895_12394.cpp:46:35: error: 'A' was not declared in this scope
             else if(cc[0] == 'A')
                                   ^
0_0_21599895_12394.cpp:46:41: error: expected primary-expression before ')' token
             else if(cc[0] == 'A')
                                         ^


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-29 21:53:54, Gzip enabled