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_27782864_9805.cpp:4:13: error: storage size of 'a' isn't known
 int b[13],a[];
             ^
0_0_27782864_9805.cpp:5:9: error: redefinition of 'int b [13]'
 int b[13] ={"rat","ox","tiger","rabbit","dragon","snake","horse","sheep","monkey","rooster","dog","pig"}
         ^
0_0_27782864_9805.cpp:4:5: note: 'int b [13]' previously declared here
 int b[13],a[];
     ^
0_0_27782864_9805.cpp:7:9: error: storage size of 's2' isn't known
 char s2[];
         ^
0_0_27782864_9805.cpp: In function 'int main()':
0_0_27782864_9805.cpp:20:9: error: 's1' was not declared in this scope
    gets(s1);
         ^
0_0_27782864_9805.cpp:25:10: error: 's1' was not declared in this scope
  if(b[n]=s1[]) n=n+1;
          ^
0_0_27782864_9805.cpp:25:13: error: expected primary-expression before ']' token
  if(b[n]=s1[]) n=n+1;
             ^
0_0_27782864_9805.cpp:26:13: error: expected primary-expression before ']' token
  if(b[m]=s2[]) m=m+1;
             ^


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-17 07:30:57, Gzip enabled