运行 ID: 356665

Main.cc: In function ‘void dfs(int, int, int, int, bool)’:
Main.cc:11:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   if(!mai)dfs(x+sx[i],y+sy[i],money+2,color,1);continue;
   ^~
Main.cc:11:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   if(!mai)dfs(x+sx[i],y+sy[i],money+2,color,1);continue;
                                                ^~~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:29:17: error: ‘INT_MAX’ was not declared in this scope
     if(f[n][n]==INT_MAX){printf("-1\n");return 0;}
                 ^~~~~~~
Main.cc:29:17: note: suggested alternative: ‘INT8_MAX’
     if(f[n][n]==INT_MAX){printf("-1\n");return 0;}
                 ^~~~~~~
                 INT8_MAX
Main.cc:19:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&n,&m);
     ~~~~~^~~~~~~~~~~~~~
Main.cc:25:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d%d",&x,&y,&color);
         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~