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_38602313_1894.cpp:6:16: error: 'struct std' redeclared as different kind of symbol
 typedef struct std
                ^~~
<built-in>: note: previous declaration 'namespace std { }'
0_0_38602313_1894.cpp:9:2: error: 'typedef int std' redeclared as different kind of symbol
 }std;
  ^~~
<built-in>: note: previous declaration 'namespace std { }'
0_0_38602313_1894.cpp:10:1: error: 'std' does not name a type
 std a[101];
 ^~~
0_0_38602313_1894.cpp: In function 'int main()':
0_0_38602313_1894.cpp:34:18: error: 'a' was not declared in this scope
             gets(a[i].str);
                  ^
0_0_38602313_1894.cpp:37:28: error: 'a' was not declared in this scope
                 if (strlen(a[i].str) < strlen(a[j].str))
                            ^
0_0_38602313_1894.cpp:39:32: error: 'a' was not declared in this scope
         for (i = 0; i < strlen(a[0].str); i++)
                                ^


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:40:24, Gzip enabled