Problem | catlunch |
---|---|
User | H2510152 |
Submission Time | 2025-02-27 11:44:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int main()’:
catlunch.cpp:42:9: error: ‘function’ was not declared in this scope
42 | function<ll(vector<int>&, int)> simulate = [&](vector<int>& stack, int depth) -> ll {
| ^~~~~~~~
catlunch.cpp:4:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
3 | #include <deque>
+++ |+#include <functional>
4 | using namespace std;
catlunch.cpp:42:38: error: expression list treated as compound expression in functional cast [-fpermissive]
42 | function<ll(vector<int>&, int)> simulate = [&](vector<int>& stack, int depth) -> ll {
| ^
catlunch.cpp:42:20: error: expected primary-expression before ‘(’ token
42 | function<ll(vector<int>&, int)> simulate = [&](vector<int>& stack, int depth) -> ll {