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_31997045_24980.cpp: In function 'int main()':
0_0_31997045_24980.cpp:7:13: error: conflicting declaration 'int b [12]'
     int b[12]={31,28,31,30,31,30,31,31,30,31,30,31};
             ^
0_0_31997045_24980.cpp:6:11: note: previous declaration as 'int b'
     int a,b,c,num=0,i=0;
           ^
0_0_31997045_24980.cpp:14:22: error: invalid types 'int[int]' for array subscript
         if(i==1)  b[1]=29;
                      ^
0_0_31997045_24980.cpp:17:26: error: invalid types 'int[int]' for array subscript
             num=num+b[b-2];
                          ^
0_0_31997045_24980.cpp:19:18: error: 'emdl' was not declared in this scope
         cout<<b<<emdl;
                  ^


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-30 14:44:30, Gzip enabled