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_17817727_14127.cpp:9:53: error: declaration of 'vis' as multidimensional array must have bounds for all dimensions except the first
 int n,m,q,dir[4][2]={0,1,0,-1,1,0,-1,0},vis[MAX][MAX],l[MAX*MAX],r[MAX*MAX];
                                                     ^
0_0_17817727_14127.cpp:9:64: error: expected primary-expression before ']' token
 int n,m,q,dir[4][2]={0,1,0,-1,1,0,-1,0},vis[MAX][MAX],l[MAX*MAX],r[MAX*MAX];
                                                                ^
0_0_17817727_14127.cpp:9:75: error: expected primary-expression before ']' token
 int n,m,q,dir[4][2]={0,1,0,-1,1,0,-1,0},vis[MAX][MAX],l[MAX*MAX],r[MAX*MAX];
                                                                           ^
0_0_17817727_14127.cpp:10:18: error: declaration of 'str' as multidimensional array must have bounds for all dimensions except the first
 char str[MAX][MAX];
                  ^
0_0_17817727_14127.cpp: In function 'int check(int)':
0_0_17817727_14127.cpp:24:16: error: 'str' was not declared in this scope
             if(str[i][j]=='1')vis[i][j]=1;
                ^
0_0_17817727_14127.cpp:24:31: error: 'vis' was not declared in this scope
             if(str[i][j]=='1')vis[i][j]=1;
                               ^
0_0_17817727_14127.cpp:25:18: error: 'vis' was not declared in this scope
             else vis[i][j]=0;
                  ^
0_0_17817727_14127.cpp:30:9: error: 'vis' was not declared in this scope
         vis[l[i]][r[i]]=1;
         ^
0_0_17817727_14127.cpp:30:13: error: 'l' was not declared in this scope
         vis[l[i]][r[i]]=1;
             ^
0_0_17817727_14127.cpp:30:19: error: 'r' was not declared in this scope
         vis[l[i]][r[i]]=1;
                   ^
0_0_17817727_14127.cpp:34:13: error: 'vis' was not declared in this scope
         if(!vis[0][k])
             ^
0_0_17817727_14127.cpp:50:20: error: 'vis' was not declared in this scope
                if(!vis[fx][fy])
                    ^
0_0_17817727_14127.cpp: In function 'int main()':
0_0_17817727_14127.cpp:85:24: error: 'str' was not declared in this scope
             scanf("%s",str[i]);
                        ^
0_0_17817727_14127.cpp:90:27: error: 'l' was not declared in this scope
             scanf("%d%d",&l[i],&r[i]);
                           ^
0_0_17817727_14127.cpp:90:33: error: 'r' was not declared in this scope
             scanf("%d%d",&l[i],&r[i]);
                                 ^


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-16 01:41:54, Gzip enabled