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_38868849_18063.cpp:188:9: error: expected unqualified-id before 'int'
  188 |         int     j;
      |         ^~~
0_0_38868849_18063.cpp: In function 'bool bfs(int, int, int, int)':
0_0_38868849_18063.cpp:209:7: error: 'memset' was not declared in this scope
  209 |       memset(flag,0,sizeof(flag));//在使用flag数组的时候,最好先清一下0,不然会WA,我不知道他的测试数据是怎样的,但是不清0答案貌似也没有错误
      |       ^~~~~~
0_0_38868849_18063.cpp:171:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  170 | #include<cstdio>
  +++ |+#include <cstring>
  171 | using namespace std;
0_0_38868849_18063.cpp:263:53: error: 'struct node' has no member named 'j'
  263 |                                         pre[bx][by].j=temp.j;//用来记录前驱结点的下标值
      |                                                     ^
0_0_38868849_18063.cpp: In function 'void print()':
0_0_38868849_18063.cpp:299:24: error: 'struct node' has no member named 'j'
  299 |     temp1.i=m-1; temp1.j=n-1; temp1.num=mg[m-1][n-1];
      |                        ^
0_0_38868849_18063.cpp:308:32: error: 'struct node' has no member named 'j'
  308 |                 y1=pre[x2][y2].j;//一直压到了x1=0,y1=0;
      |                                ^
0_0_38868849_18063.cpp:319:65: error: 'struct node' has no member named 'j'
  319 |                 printf("%ds:(%d,%d)->(%d,%d)\n",k++,temp.i,temp.j,temp1.i,temp1.j);
      |                                                                 ^
0_0_38868849_18063.cpp:319:81: error: 'struct node' has no member named 'j'
  319 |                 printf("%ds:(%d,%d)->(%d,%d)\n",k++,temp.i,temp.j,temp1.i,temp1.j);
      |                                                                                 ^
0_0_38868849_18063.cpp:323:73: error: 'struct node' has no member named 'j'
  323 |                         printf("%ds:FIGHT AT (%d,%d)\n",k++,temp.i,temp.j);
      |                                                                         ^
0_0_38868849_18063.cpp:325:73: error: 'struct node' has no member named 'j'
  325 |                         printf("%ds:(%d,%d)->(%d,%d)\n",k++,temp.i,temp.j,temp1.i,temp1.j);
      |                                                                         ^
0_0_38868849_18063.cpp:325:89: error: 'struct node' has no member named 'j'
  325 |                         printf("%ds:(%d,%d)->(%d,%d)\n",k++,temp.i,temp.j,temp1.i,temp1.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-07-01 20:04:23, Gzip enabled