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