记录详情

Compile Error

foo.cc:36:46: error: stray '\345' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                              ^
foo.cc:36:47: error: stray '\256' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                               ^
foo.cc:36:48: error: stray '\263' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                ^
foo.cc:36:49: error: stray '\346' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                 ^
foo.cc:36:50: error: stray '\255' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                  ^
foo.cc:36:51: error: stray '\273' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                   ^
foo.cc:36:52: error: stray '\344' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                    ^
foo.cc:36:53: error: stray '\272' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                     ^
foo.cc:36:54: error: stray '\272' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                      ^
foo.cc:36:55: error: stray '\344' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                       ^
foo.cc:36:56: error: stray '\272' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                        ^
foo.cc:36:57: error: stray '\206' in program
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                                         ^
foo.cc: In function 'int cango(Node)':
foo.cc:36:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |       ^~
foo.cc:36:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   36 |       if(map[next.x][next.y]=='L') return 0;/害死人了
      |                                             ^
foo.cc:36:45: error: expected primary-expression before '/' token
foo.cc:38:7: error: expected primary-expression before 'return'
   38 |       return 1;
      |       ^~~~~~
foo.cc: In function 'int bfs()':
foo.cc:126:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  126 |                 if(step[next.x][next.y]==0&&dist[next.x][next.y]<D||tmp.step+1<step[next.x][next.y]||d>dist[next.x][next.y])
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int cango(Node)':
foo.cc:40:1: warning: control reaches end of non-void function [-Wreturn-type]
   40 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:159:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  159 |     scanf("%d",&T);
      |     ~~~~~^~~~~~~~~
foo.cc:164:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  164 |            scanf("%d%d%d\n",&n,&m,&D);
      |            ~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:170:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  170 |                       if(j==m) scanf("%c\n",&map[i][j]);
      |                                ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:172:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  172 |                       else scanf("%c",&map[i][j]);
      |                            ~~~~~^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1005 飞越原野。(escape.1s,64MB)
题目数据
下载
语言
C++
递交时间
2022-02-27 11:27:21
评测时间
2022-02-27 11:27:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes