Problem splithunny
User jerrielchangjiebin
Submission Time 2024-12-23 16:00:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int main()’:
splithunny.cpp:43:5: error: ‘function’ was not declared in this scope
43 | function<void(int, int)> bfs = [&](int start_r, int start_c) {
| ^~~~~~~~
splithunny.cpp:6:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
5 | #include <queue>
+++ |+#include <functional>
6 |
splithunny.cpp:43:27: error: expression list treated as compound expression in functional cast [-fpermissive]
43 | function<void(int, int)> bfs = [&](int start_r, int start_c) {
| ^
splithunny.cpp:43:14: error: expected primary-expression before ‘void’
43 | function<void(int, int)> bfs = [&](int start_r, int start_c) {
| ^~~~
splithunny.cpp:83:17: error: ‘bfs’ was not declared in this scope
83 | bfs(i, j);
|