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_22226906_14551.cpp:11:12: error: declaration of 'dir' as multidimensional array must have bounds for all dimensions except the first
  int dir[][]={{,0},{-,0},{0,},{0,-}};
            ^
0_0_22226906_14551.cpp:11:16: error: expected primary-expression before ',' token
  int dir[][]={{,0},{-,0},{0,},{0,-}};
                ^
0_0_22226906_14551.cpp:11:22: error: expected primary-expression before ',' token
  int dir[][]={{,0},{-,0},{0,},{0,-}};
                      ^
0_0_22226906_14551.cpp:11:35: error: expected primary-expression before '}' token
  int dir[][]={{,0},{-,0},{0,},{0,-}};
                                   ^
0_0_22226906_14551.cpp: In function 'void bfs()':
0_0_22226906_14551.cpp:27:17: error: expected primary-expression before ';' token
      head.turn=-;
                 ^
0_0_22226906_14551.cpp:33:24: error: expected primary-expression before ';' token
          for(int i=0;i<;i++)
                        ^
0_0_22226906_14551.cpp:35:28: error: 'dir' was not declared in this scope
              int xx=head.x+dir[i][0];
                            ^
0_0_22226906_14551.cpp:36:35: error: expected primary-expression before ']' token
              int yy=head.y+dir[i][];
                                   ^
0_0_22226906_14551.cpp:42:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
              while(xx>= && xx<=m && yy>= && yy<=n && map[xx][yy]!='*')
                            ^
0_0_22226906_14551.cpp:42:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
              while(xx>= && xx<=m && yy>= && yy<=n && map[xx][yy]!='*')
                                             ^
0_0_22226906_14551.cpp:46:38: error: expected primary-expression before ';' token
                      visited[xx][yy]=;
                                      ^
0_0_22226906_14551.cpp:49:42: error: expected primary-expression before ';' token
                      tail.turn=head.turn+;
                                          ^
0_0_22226906_14551.cpp:58:31: error: expected primary-expression before ']' token
                  yy=yy+dir[i][];
                               ^
0_0_22226906_14551.cpp:42:28: error: label 'xx' used but not defined
              while(xx>= && xx<=m && yy>= && yy<=n && map[xx][yy]!='*')
                            ^
0_0_22226906_14551.cpp:42:45: error: label 'yy' used but not defined
              while(xx>= && xx<=m && yy>= && yy<=n && map[xx][yy]!='*')
                                             ^
0_0_22226906_14551.cpp: In function 'int main()':
0_0_22226906_14551.cpp:75:20: error: expected primary-expression before ';' token
          for(int i=;i<=m;i++)
                    ^
0_0_22226906_14551.cpp:78:24: error: expected primary-expression before ';' token
              for(int j=;j<=n;j++)
                        ^


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 17:33:13, Gzip enabled