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_21596401_28629.cpp:35:21: error: stray '#' in program
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                     ^
0_0_21596401_28629.cpp:35:27: error: stray '#' in program
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                           ^
0_0_21596401_28629.cpp:35:44: error: stray '#' in program
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                                            ^
0_0_21596401_28629.cpp:35:50: error: stray '#' in program
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                                                  ^
0_0_21596401_28629.cpp:35:71: error: stray '#' in program
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                                                                       ^
0_0_21596401_28629.cpp:35:77: error: stray '#' in program
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                                                                             ^
0_0_21596401_28629.cpp: In function 'bool judge(int)':
0_0_21596401_28629.cpp:35:22: error: lvalue required as unary '&' operand
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                      ^
0_0_21596401_28629.cpp:35:24: error: expected ')' before ';' token
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                        ^
0_0_21596401_28629.cpp:35:25: error: 'w' was not declared in this scope
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                         ^
0_0_21596401_28629.cpp:35:36: error: expected ';' before '[' token
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                                    ^
0_0_21596401_28629.cpp:35:48: error: 'b' was not declared in this scope
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                                                ^
0_0_21596401_28629.cpp:35:59: error: expected ';' before '[' token
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                                                           ^
0_0_21596401_28629.cpp:35:81: error: expected primary-expression before ')' token
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                                                                                 ^
0_0_21596401_28629.cpp:36:5: error: 'else' without a previous 'if'
     else return false;
     ^
0_0_21596401_28629.cpp:35:35: error: label 's' used but not defined
     if(s[i - 1] == 'w' && s[i] == 'b' && s[i + 1] == 'w') return true;
                                   ^


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-01-11 00:47:34, Gzip enabled