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_26447104_31900.c: In function 'main':
0_0_26447104_31900.c:5:44: error: expected expression before '/' token
  int sum,n,dijitou[4000],a[1000],b[1000];  //第几头牛的年份 
                                            ^
0_0_26447104_31900.c:5:44: error: stray '\265' in program
0_0_26447104_31900.c:5:44: error: stray '\332' in program
0_0_26447104_31900.c:5:44: error: stray '\274' in program
0_0_26447104_31900.c:5:44: error: stray '\270' in program
0_0_26447104_31900.c:5:44: error: stray '\315' in program
0_0_26447104_31900.c:5:44: error: stray '\267' in program
0_0_26447104_31900.c:5:44: error: stray '\305' in program
0_0_26447104_31900.c:5:44: error: stray '\243' in program
0_0_26447104_31900.c:5:44: error: stray '\265' in program
0_0_26447104_31900.c:5:44: error: stray '\304' in program
0_0_26447104_31900.c:5:44: error: stray '\304' in program
0_0_26447104_31900.c:5:44: error: stray '\352' in program
0_0_26447104_31900.c:5:44: error: stray '\267' in program
0_0_26447104_31900.c:5:44: error: stray '\335' in program
0_0_26447104_31900.c:6:44: error: expected expression before '/' token
  int t;                                    //数据量 
                                            ^
0_0_26447104_31900.c:6:44: error: stray '\312' in program
0_0_26447104_31900.c:6:44: error: stray '\375' in program
0_0_26447104_31900.c:6:44: error: stray '\276' in program
0_0_26447104_31900.c:6:44: error: stray '\335' in program
0_0_26447104_31900.c:6:44: error: stray '\301' in program
0_0_26447104_31900.c:6:44: error: stray '\277' in program
0_0_26447104_31900.c:10:6: error: 't' undeclared (first use in this function)
  for(t=2;a[t-1]!=0;t++)
      ^
0_0_26447104_31900.c:10:6: note: each undeclared identifier is reported only once for each function it appears in
0_0_26447104_31900.c:14:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int l=2;l<=t-2;l++)
  ^
0_0_26447104_31900.c:14:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_26447104_31900.c:19:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int k=2;k<=a[l];k++)               //年循环 
   ^
0_0_26447104_31900.c:19:42: error: expected expression before '/' token
   for(int k=2;k<=a[l];k++)               //年循环 
                                          ^
0_0_26447104_31900.c:19:42: error: stray '\304' in program
0_0_26447104_31900.c:19:42: error: stray '\352' in program
0_0_26447104_31900.c:19:42: error: stray '\321' in program
0_0_26447104_31900.c:19:42: error: stray '\255' in program
0_0_26447104_31900.c:19:42: error: stray '\273' in program
0_0_26447104_31900.c:19:42: error: stray '\267' in program
0_0_26447104_31900.c:21:7: error: stray '\305' in program
       for(int i=1;i<=sum;i++)            //牛循环 
       ^
0_0_26447104_31900.c:21:7: error: stray '\243' in program
0_0_26447104_31900.c:21:7: error: stray '\321' in program
0_0_26447104_31900.c:21:7: error: stray '\255' in program
0_0_26447104_31900.c:21:7: error: stray '\273' in program
0_0_26447104_31900.c:21:7: error: stray '\267' in program
0_0_26447104_31900.c:32:10: error: redefinition of 'l'
  for(int l=2;l<=t-2;l++)
          ^
0_0_26447104_31900.c:14:10: note: previous definition of 'l' was here
  for(int l=2;l<=t-2;l++)
          ^
0_0_26447104_31900.c:32:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int l=2;l<=t-2;l++)
  ^


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 12:12:32, Gzip enabled