Record Detail

Compile Error

/in/Compile/check.cpp:53:17: error: use of undeclared identifier 'width'
    std::cin >> width >> height;
                ^
/in/Compile/check.cpp:53:26: error: use of undeclared identifier 'height'
    std::cin >> width >> height;
                         ^
/in/Compile/check.cpp:54:5: error: use of undeclared identifier 'grid'
    grid.resize((size_t)height);
    ^
/in/Compile/check.cpp:54:25: error: use of undeclared identifier 'height'
    grid.resize((size_t)height);
                        ^
/in/Compile/check.cpp:56:40: error: use of undeclared identifier 'height'
        for (size_t i = 0; i < (size_t)height; ++i) {
                                       ^
/in/Compile/check.cpp:57:25: error: use of undeclared identifier 'grid'
            std::cin >> grid[i];
                        ^
/in/Compile/check.cpp:58:21: error: use of undeclared identifier 'grid'
            assert((grid[i].size() == (size_t)width) && "grid[i] size does not match width");
                    ^
/in/Compile/check.cpp:58:47: error: use of undeclared identifier 'width'
            assert((grid[i].size() == (size_t)width) && "grid[i] size does not match width");
                                              ^
/in/Compile/check.cpp:79:5: error: no matching function for call to 'read_map_joj'
    read_map_joj(grid);
    ^~~~~~~~~~~~
/in/Compile/check.cpp:52:6: note: candidate function not viable: requires 0 arguments, but 1 was provided
void read_map_joj() {
     ^
9 errors generated.
/in/Compile/Makefile:16: recipe for target 'main' failed
make: *** [main] Error 1

Information

Submit By
Type
Submission
Language
C++
Submit At
2024-11-27 19:09:12
Judged At
2024-11-27 19:09:12
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes