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_37615338_23869.cpp: In function 'int main()':
0_0_37615338_23869.cpp:31:65: error: lvalue required as left operand of assignment
     }else if(q[len-1]='o'||q[len-1]='s'||(q[len-2]='c'&&q[len-1]='h')||(q[len-2]='s'&&q[len-1]='h')||q[len-1]='x'){
                                                                 ^
0_0_37615338_23869.cpp:31:95: error: lvalue required as left operand of assignment
     }else if(q[len-1]='o'||q[len-1]='s'||(q[len-2]='c'&&q[len-1]='h')||(q[len-2]='s'&&q[len-1]='h')||q[len-1]='x'){
                                                                                               ^


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-12-03 01:31:45, Gzip enabled