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_17726597_31620.cpp: In function 'int main()':
0_0_17726597_31620.cpp:18:15: error: request for member 'length' in 's', which is of non-class type 'char [100005]'
   for(i=0;i<s.length()-p.length()+1;i++)
               ^
0_0_17726597_31620.cpp:18:26: error: request for member 'length' in 'p', which is of non-class type 'char [5005]'
   for(i=0;i<s.length()-p.length()+1;i++)
                          ^
0_0_17726597_31620.cpp:21:16: error: request for member 'length' in 'p', which is of non-class type 'char [5005]'
    for(j=0;j<p.length()-1;j++)
                ^
0_0_17726597_31620.cpp:35:11: error: request for member 'length' in 'p', which is of non-class type 'char [5005]'
    if(j<p.length()-1) putchar('0');
           ^
0_0_17726597_31620.cpp:41:12: error: request for member 'length' in 's', which is of non-class type 'char [100005]'
   for(;i<s.length();i++)
            ^


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.001000(s) query 1, Server time : 2025-02-18 22:27:02, Gzip enabled