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_24652391_31382.cpp: In function 'int main()':
0_0_24652391_31382.cpp:6:27: error: conflicting declaration 'int a'
     int i,t,l,x=0,y=0,z=0,a=0,sn=0;
                           ^
0_0_24652391_31382.cpp:5:11: note: previous declaration as 'char a [100]'
      char a[100];
           ^
0_0_24652391_31382.cpp:23:18: error: incompatible types in assignment of 'int' to 'char [100]'
                 a=1;
                  ^
0_0_24652391_31382.cpp:25:21: error: invalid conversion from 'char*' to 'int' [-fpermissive]
             sn=x+y+z+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-12-02 20:52:03, Gzip enabled