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_21593389_12491.cpp:14:27: error: stray '#' in program
             if(str[i] == '0')
                           ^
0_0_21593389_12491.cpp:14:33: error: stray '#' in program
             if(str[i] == '0')
                                 ^
0_0_21593389_12491.cpp:16:32: error: stray '#' in program
             else if(str[i] == '1')
                                ^
0_0_21593389_12491.cpp:16:38: error: stray '#' in program
             else if(str[i] == '1')
                                      ^
0_0_21593389_12491.cpp: In function 'int main()':
0_0_21593389_12491.cpp:14:28: error: lvalue required as unary '&' operand
             if(str[i] == '0')
                            ^
0_0_21593389_12491.cpp:14:30: error: expected ')' before ';' token
             if(str[i] == '0')
                              ^
0_0_21593389_12491.cpp:14:37: error: expected primary-expression before ')' token
             if(str[i] == '0')
                                     ^
0_0_21593389_12491.cpp:16:13: error: 'else' without a previous 'if'
             else if(str[i] == '1')
             ^
0_0_21593389_12491.cpp:16:33: error: lvalue required as unary '&' operand
             else if(str[i] == '1')
                                 ^
0_0_21593389_12491.cpp:16:35: error: expected ')' before ';' token
             else if(str[i] == '1')
                                   ^
0_0_21593389_12491.cpp:16:42: error: expected primary-expression before ')' token
             else if(str[i] == '1')
                                          ^


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-09-24 17:14:37, Gzip enabled