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_22226887_16591.cpp:13:12: error: declaration of 'dir' as multidimensional array must have bounds for all dimensions except the first
  int dir[][]={{0,},{0,-},{,0},{-,0}},dp[N][N],mat[N][N],n;
            ^
0_0_22226887_16591.cpp:13:24: error: expected primary-expression before '}' token
  int dir[][]={{0,},{0,-},{,0},{-,0}},dp[N][N],mat[N][N],n;
                        ^
0_0_22226887_16591.cpp:13:27: error: expected primary-expression before ',' token
  int dir[][]={{0,},{0,-},{,0},{-,0}},dp[N][N],mat[N][N],n;
                           ^
0_0_22226887_16591.cpp:13:33: error: expected primary-expression before ',' token
  int dir[][]={{0,},{0,-},{,0},{-,0}},dp[N][N],mat[N][N],n;
                                 ^
0_0_22226887_16591.cpp: In function 'void bfs()':
0_0_22226887_16591.cpp:25:24: error: expected primary-expression before ';' token
          for(int i=0;i<;i++){
                        ^
0_0_22226887_16591.cpp:26:25: error: 'dir' was not declared in this scope
              int xx=b.x+dir[i][0];
                         ^
0_0_22226887_16591.cpp:27:32: error: expected primary-expression before ']' token
              int yy=b.y+dir[i][];
                                ^
0_0_22226887_16591.cpp:28:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
              if(xx>=&&xx<=n&&yy>=&&yy<=n){
                       ^
0_0_22226887_16591.cpp:28:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
              if(xx>=&&xx<=n&&yy>=&&yy<=n){
                                    ^
0_0_22226887_16591.cpp:28:23: error: label 'xx' used but not defined
              if(xx>=&&xx<=n&&yy>=&&yy<=n){
                       ^
0_0_22226887_16591.cpp:28:36: error: label 'yy' used but not defined
              if(xx>=&&xx<=n&&yy>=&&yy<=n){
                                    ^
0_0_22226887_16591.cpp: In function 'long long int dfs(int, int)':
0_0_22226887_16591.cpp:43:21: error: return-statement with no value, in function returning 'long long int' [-fpermissive]
      if(x==n&&y==n) return ;
                     ^
0_0_22226887_16591.cpp:47:20: error: expected primary-expression before ';' token
      for(int i=0;i<;i++){
                    ^
0_0_22226887_16591.cpp:48:19: error: 'dir' was not declared in this scope
          int xx=x+dir[i][0];
                   ^
0_0_22226887_16591.cpp:49:26: error: expected primary-expression before ']' token
          int yy=y+dir[i][];
                          ^
0_0_22226887_16591.cpp:50:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
          if(xx>=&&xx<=n&&yy>=&&yy<=n){
                   ^
0_0_22226887_16591.cpp:50:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
          if(xx>=&&xx<=n&&yy>=&&yy<=n){
                                ^
0_0_22226887_16591.cpp:50:32: error: label 'yy' used but not defined
0_0_22226887_16591.cpp:50:19: error: label 'xx' used but not defined
          if(xx>=&&xx<=n&&yy>=&&yy<=n){
                   ^
0_0_22226887_16591.cpp: In function 'int main()':
0_0_22226887_16591.cpp:66:20: error: expected primary-expression before ';' token
          for(int i=;i<=n;i++){
                    ^
0_0_22226887_16591.cpp:67:24: error: expected primary-expression before ';' token
              for(int j=;j<=n;j++){
                        ^
0_0_22226887_16591.cpp:80:31: error: expected primary-expression before ',' token
          printf("%I64d\n",dfs(,));
                               ^
0_0_22226887_16591.cpp:80:32: error: expected primary-expression before ')' token
          printf("%I64d\n",dfs(,));
                                ^


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:39:35, Gzip enabled