QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#864001 | #3434. Restaurant Orders | MaMengQi | Compile Error | / | / | C++11 | 1.6kb | 2025-01-20 06:57:29 | 2025-01-20 06:57:30 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:30:9: error: ‘function’ was not declared in this scope 30 | function<void(int, vector<int>)> solve = | ^~~~~~~~ answer.code:4:1: note: ‘std::function’ is defined in header ‘<functional>’; this is probably fixable by adding ‘#include <functional>’ 3 | #include <algorithm> +++ |+#include <functional> 4 | using namespace std; answer.code:30:39: error: expression list treated as compound expression in functional cast [-fpermissive] 30 | function<void(int, vector<int>)> solve = | ^ answer.code:30:18: error: expected primary-expression before ‘void’ 30 | function<void(int, vector<int>)> solve = | ^~~~ answer.code:43:9: error: ‘solve’ was not declared in this scope 43 | solve(0, count); | ^~~~~