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_38602332_3414.cpp:5:8: error: 'struct std' redeclared as different kind of symbol
 struct std
        ^~~
<built-in>: note: previous declaration 'namespace std { }'
0_0_38602332_3414.cpp: In function 'int main()':
0_0_38602332_3414.cpp:29:23: error: request for member 'str' in 'a[i]', which is of non-class type 'int'
             gets(a[i].str);
                       ^~~
0_0_38602332_3414.cpp:34:32: error: request for member 'str' in 'a[i]', which is of non-class type 'int'
                 if(strlen(a[i].str)<strlen(a[j].str))
                                ^~~
0_0_38602332_3414.cpp:34:49: error: request for member 'str' in 'a[j]', which is of non-class type 'int'
                 if(strlen(a[i].str)<strlen(a[j].str))
                                                 ^~~
0_0_38602332_3414.cpp:38:35: error: request for member 'str' in 'a[0]', which is of non-class type 'int'
             for(i=0;i<strlen(a[0].str);i++)
                                   ^~~
0_0_38602332_3414.cpp:39:37: error: request for member 'str' in 'a[0]', which is of non-class type 'int'
               for(j=i;j<strlen(a[0].str);j++)
                                     ^~~
0_0_38602332_3414.cpp:41:35: error: request for member 'str' in 'a[0]', which is of non-class type 'int'
                    zichuan(p,a[0].str,i,j);
                                   ^~~
0_0_38602332_3414.cpp:44:44: error: request for member 'str' in 'a[k]', which is of non-class type 'int'
                       q=strrev(strdup(a[k].str));
                                            ^~~
0_0_38602332_3414.cpp:45:57: error: request for member 'str' in 'a[k]', which is of non-class type 'int'
                       if(strstr(q,p)!=NULL||strstr(a[k].str,p)!=NULL)
                                                         ^~~


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-11-15 09:43:11, Gzip enabled