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_40083108_31547.cpp: In function 'int bfs(int, int, int, int, std::vector<std::vector<char> >&, std::vector<std::vector<int> >&)':
0_0_40083108_31547.cpp:32:59: error: expected ';' at end of input
   32 |         if (curr.x == tx && curr.y == ty) return curr.cost  
      |                                                           ^
      |                                                           ;
0_0_40083108_31547.cpp:32:59: error: expected '}' at end of input
0_0_40083108_31547.cpp:28:24: note: to match this '{'
   28 |     while (!q.empty()) {
      |                        ^
0_0_40083108_31547.cpp:32:59: error: expected '}' at end of input
   32 |         if (curr.x == tx && curr.y == ty) return curr.cost  
      |                                                           ^
0_0_40083108_31547.cpp:21:100: note: to match this '{'
   21 | int bfs(int sx, int sy, int tx, int ty, vector<vector<char>>& maze, vector<vector<int>>& monsters) {
      |                                                                                                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-04-09 20:47:34, Gzip enabled