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_39030647_16776.cpp: In function 'void dfs(int, int, bool, int)':
0_0_39030647_16776.cpp:7:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |                         ans=min(ans,cb);
      |                         ^~~
      |                         abs
0_0_39030647_16776.cpp:14:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |         if(ans<=cb||edt[ys][x][y]<=cb+dt[x][y]) {
      |            ^~~
      |            abs
0_0_39030647_16776.cpp:14:21: error: 'edt' was not declared in this scope; did you mean 'dt'?
   14 |         if(ans<=cb||edt[ys][x][y]<=cb+dt[x][y]) {
      |                     ^~~
      |                     dt
0_0_39030647_16776.cpp:17:9: error: 'edt' was not declared in this scope; did you mean 'dt'?
   17 |         edt[ys][x][y]=cb+dt[x][y];
      |         ^~~
      |         dt
0_0_39030647_16776.cpp:19:23: error: 'fx' was not declared in this scope; did you mean 'x'?
   19 |                 dfs(x+fx[i][0],y+fx[i][1],ys,edt[ys][x][y]);
      |                       ^~
      |                       x
0_0_39030647_16776.cpp: In function 'int main()':
0_0_39030647_16776.cpp:27:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   27 |                 ans=INT_MAX;
      |                 ^~~
      |                 abs
0_0_39030647_16776.cpp:44:80: error: expected ';' before '}' token
   44 |                                         dt1[i][j][k]=min(dt1[i][j][k],dt[i][j])
      |                                                                                ^
      |                                                                                ;
   45 |                                 }
      |                                 ~                                               


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 04:23:26, Gzip enabled