Problem field
User Hengweezy
Submission Time 2024-05-18 21:56:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

field.cpp: In function ‘int shortestPath(int, int, const std::vector<Puddle>&)’:
field.cpp:56:35: error: expected primary-expression at end of input
56 | pq.push({dist + 1 +
| ^
field.cpp:56:35: error: expected ‘}’ at end of input
field.cpp:56:36: error: expected ‘)’ at end of input
56 | pq.push({dist + 1 +
| ~ ~^
| )
field.cpp:56:35: error: expected ‘}’ at end of input
56 | pq.push({dist + 1 +
| ^
field.cpp:55:89: note: to match this ‘{’
55 | if (!isBlocked(nx, ny, puddles) && visited.find({nx, ny}) == visited.end()) {
| ^
field.cpp:56:35: error: expected ‘}’ at end of input
56 | pq.push({dist