C++版本 // C++版本 #include <iostream> #include <queue> #include <vector> // 路的类型 enum class Road : char { START = 'S', END = 'E', WALL = '1', GATE = '2', }; // 坐标类型 struct Point { int x, y; Point() = delete; Point(const int _x, const int _y) : x(_x), y(_y) {} Point operator+(const Poi...