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_32319571_24209.c: In function 'win1':
0_0_32319571_24209.c:25:33: error: expected expression before '/' token
 void win1(char* tile,char* ans){//13 special +1
                                 ^
0_0_32319571_24209.c:34:17: error: 'e' undeclared (first use in this function)
                 e++,i++;
                 ^
0_0_32319571_24209.c:34:17: note: each undeclared identifier is reported only once for each function it appears in
0_0_32319571_24209.c:48:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int i=0;i<13;i++){
             ^
0_0_32319571_24209.c:48:13: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_32319571_24209.c: In function 'win2':
0_0_32319571_24209.c:56:33: error: expected expression before '/' token
 void win2(char* tile,char* ans){//7 eyes
                                 ^
0_0_32319571_24209.c:62:13: error: 'df' undeclared (first use in this function)
             df=tile[i];
             ^
0_0_32319571_24209.c: In function 'win3':
0_0_32319571_24209.c:83:63: error: expected expression before '/' token
 void win3(int* nb,char* ans,int meld,char df,int eye,char un){//4meld + 1
                                                               ^
0_0_32319571_24209.c:83:65: error: invalid suffix "meld" on integer constant
 void win3(int* nb,char* ans,int meld,char df,int eye,char un){//4meld + 1
                                                                 ^
0_0_32319571_24209.c:93:14: error: 'i' undeclared (first use in this function)
     while(nb[i]==0) i++;
              ^
0_0_32319571_24209.c:94:5: error: expected expression before '/' token
     //df
     ^
0_0_32319571_24209.c: In function 'fun':
0_0_32319571_24209.c:145:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=0;i<13;i++){
     ^
0_0_32319571_24209.c:157:13: error: redefinition of 'i'
     for(int i=0;i<34;i++) ans[i]=0;
             ^
0_0_32319571_24209.c:145:13: note: previous definition of 'i' was here
     for(int i=0;i<13;i++){
             ^
0_0_32319571_24209.c:157:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=0;i<34;i++) ans[i]=0;
     ^
0_0_32319571_24209.c:161:13: error: redefinition of 'i'
     for(int i=0;i<13;i++) nb[tile[i]]++;
             ^
0_0_32319571_24209.c:157:13: note: previous definition of 'i' was here
     for(int i=0;i<34;i++) ans[i]=0;
             ^
0_0_32319571_24209.c:161:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=0;i<13;i++) nb[tile[i]]++;
     ^
0_0_32319571_24209.c:164:13: error: redefinition of 'i'
     for(int i=0;i<34;i++) if(ans[i]) n++;
             ^
0_0_32319571_24209.c:161:13: note: previous definition of 'i' was here
     for(int i=0;i<13;i++) nb[tile[i]]++;
             ^
0_0_32319571_24209.c:164:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=0;i<34;i++) if(ans[i]) n++;
     ^
0_0_32319571_24209.c:167:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(char i=0;i<34;i++){
         ^
0_0_32319571_24209.c: In function 'main':
0_0_32319571_24209.c:187:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=0;i<t;i++) fun();
     ^


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-26 16:05:35, Gzip enabled