Problem | wonhee |
---|---|
User | jerrielchangjiebin |
Submission Time | 2024-12-28 10:55:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
wonhee.cpp: In function ‘int main()’:
wonhee.cpp:89:21: error: ‘function’ was not declared in this scope
89 | function<bool(int, int)> dfs = [&](int row, int col) {
| ^~~~~~~~
wonhee.cpp:4:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
3 | #include <numeric>
+++ |+#include <functional>
4 |
wonhee.cpp:89:43: error: expression list treated as compound expression in functional cast [-fpermissive]
89 | function<bool(int, int)> dfs = [&](int row, int col) {
| ^
wonhee.cpp:89:30: error: expected primary-expression before ‘bool’
89 | function<bool(int, int)> dfs = [&](int row, int col) {
| ^~~~
wonhee.cpp:101:38: error: ‘dfs’ was not declared in this scope
101 |