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_26390092_4860.c:3:34: error: expected identifier or '(' before '/' token
 unsigned int hoteles[200000][5]; // X Y Cost Factible Distance
                                  ^
0_0_26390092_4860.c:4:32: error: expected identifier or '(' before '/' token
 unsigned int guests[20000][3]; //X Y Cost H1 H2 H3
                                ^
0_0_26390092_4860.c: In function 'factible':
0_0_26390092_4860.c:23:8: error: 'guests' undeclared (first use in this function)
     if(guests[c][2]>=hoteles[h][2]){
        ^
0_0_26390092_4860.c:23:8: note: each undeclared identifier is reported only once for each function it appears in
0_0_26390092_4860.c: In function 'recomendar':
0_0_26390092_4860.c:33:22: error: 'LONG_MAX' undeclared (first use in this function)
   unsigned int min = LONG_MAX;
                      ^
0_0_26390092_4860.c:35:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(long int p = 0; p!=h;p++){
   ^
0_0_26390092_4860.c:35:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_26390092_4860.c:44:3: error: expected expression before '/' token
   //cout<<hoteles[hout][0]<<" "<<hoteles[hout][1]<<" "<<hoteles[hout][2]<<endl;
   ^
0_0_26390092_4860.c: In function 'main':
0_0_26390092_4860.c:49:23: error: expected expression before '/' token
   scanf("%u",&cases); //Numero de casos
                       ^


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-29 18:44:24, Gzip enabled