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_13577473_22758.c: In function 'connectivity':
0_0_13577473_22758.c:10:44: error: expected expression before '/' token
     if(i > 0 && a[i-1][j] != -1) ret += 1; //north
                                            ^
0_0_13577473_22758.c:11:46: error: expected expression before '/' token
     if(i < n-1 && a[i+1][j] != -1) ret += 1; //south
                                              ^
0_0_13577473_22758.c:12:43: error: expected expression before '/' token
     if(j > 0 && a[i][j-1] != -1) ret +=1; //west
                                           ^
0_0_13577473_22758.c:13:45: error: expected expression before '/' token
     if(j < n-1 && a[i][j+1] != -1) ret +=1; //east
                                             ^
0_0_13577473_22758.c: In function 'build_wall':
0_0_13577473_22758.c:38:24: error: expected expression before '/' token
         a[p][j] = -2;  //north
                        ^
0_0_13577473_22758.c: In function 'main':
0_0_13577473_22758.c:81:1: error: expected expression before '/' token
 //printf("min val = %d\n", min_val);
 ^


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-23 03:41:13, Gzip enabled