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_36072046_18193.cpp: In function 'int main()':
0_0_36072046_18193.cpp:19:42: error: request for member 'strlen' in 's1', which is of non-class type 'char [20]'
         }else if(s1[0] == s2[0] && s1[s1.strlen()-1] == s2[s2.strlen()-1] && s1..strlen() == s2..strlen()){
                                          ^
0_0_36072046_18193.cpp:19:63: error: request for member 'strlen' in 's2', which is of non-class type 'char [20]'
         }else if(s1[0] == s2[0] && s1[s1.strlen()-1] == s2[s2.strlen()-1] && s1..strlen() == s2..strlen()){
                                                               ^
0_0_36072046_18193.cpp:19:81: error: expected unqualified-id before '.' token
         }else if(s1[0] == s2[0] && s1[s1.strlen()-1] == s2[s2.strlen()-1] && s1..strlen() == s2..strlen()){
                                                                                 ^
0_0_36072046_18193.cpp:19:97: error: expected unqualified-id before '.' token
         }else if(s1[0] == s2[0] && s1[s1.strlen()-1] == s2[s2.strlen()-1] && s1..strlen() == s2..strlen()){
                                                                                                 ^
0_0_36072046_18193.cpp:20:27: error: request for member 'strlen' in 's1', which is of non-class type 'char [20]'
             sort(s1,s1+s1.strlen());
                           ^
0_0_36072046_18193.cpp:21:27: error: request for member 'strlen' in 's2', which is of non-class type 'char [20]'
             sort(s2,s2+s2.strlen());
                           ^


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-02 11:22:20, Gzip enabled