Record Detail

Compile Error

In file included from /in/Compile/check.cpp:7:
/in/sokoban.hpp:284:17: error: use of undeclared identifier 'is_valid'
            if (is_valid(nx, ny, rows, cols, grid) && !visited[static_cast<size_t>(nx)][static_cast<size_t>(ny)]) {
                ^
/in/sokoban.hpp:421:18: error: no matching function for call to 'is_valid'
            if (!is_valid(new_px, new_py)) {
                 ^~~~~~~~
/in/sokoban.hpp:316:6: note: candidate function not viable: requires 5 arguments, but 2 were provided
bool is_valid(int x, int y, size_t rows, size_t cols, const std::vector<std::string>& grid) {
     ^
/in/sokoban.hpp:440:21: error: no matching function for call to 'is_valid'
                                if (!is_valid(new_bx, new_by)) {
                                     ^~~~~~~~
/in/sokoban.hpp:316:6: note: candidate function not viable: requires 5 arguments, but 2 were provided
bool is_valid(int x, int y, size_t rows, size_t cols, const std::vector<std::string>& grid) {
     ^
3 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1

Information

Submit By
Type
Submission
Homework
Project3
Language
C++
Submit At
2024-11-27 23:14:08
Judged At
2024-11-27 23:14:08
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes