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_31414374_20734.cpp: In function 'int main()':
0_0_31414374_20734.cpp:6:13: error: conflicting declaration 'int a'
         int a,b,c,d;
             ^
0_0_31414374_20734.cpp:5:14: note: previous declaration as 'char a [1000][1000]'
         char a[1000][1000];
              ^
0_0_31414374_20734.cpp:7:27: error: 'n' was not declared in this scope
         while(scanf("%d",&n)!=EOF&&n)
                           ^
0_0_31414374_20734.cpp:9:18: error: incompatible types in assignment of 'int' to 'char [1000][1000]'
             for(a=1;a<d;a++)
                  ^
0_0_31414374_20734.cpp:9:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
             for(a=1;a<d;a++)
                       ^
0_0_31414374_20734.cpp:9:26: error: lvalue required as increment operand
             for(a=1;a<d;a++)
                          ^
0_0_31414374_20734.cpp:10:27: error: invalid types 'char [1000][1000][char [1000][1000]]' for array subscript
             scanf("%s",a[a]);
                           ^
0_0_31414374_20734.cpp:12:18: error: incompatible types in assignment of 'int' to 'char [1000][1000]'
             for(a=1;a<n;a++)
                  ^
0_0_31414374_20734.cpp:12:26: error: lvalue required as increment operand
             for(a=1;a<n;a++)
                          ^
0_0_31414374_20734.cpp:14:23: error: invalid conversion from 'char (*)[1000]' to 'int' [-fpermissive]
                for(b=a+1;b<d;b++)
                       ^
0_0_31414374_20734.cpp:16:33: error: invalid types 'char [1000][1000][char [1000][1000]]' for array subscript
                    if(strcmp(a[a],a[b])==0)
                                 ^
0_0_31414374_20734.cpp:23:25: error: invalid conversion from 'char (*)[1000]' to 'int' [-fpermissive]
                        d=a;
                         ^


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-10-06 13:18:41, Gzip enabled