QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#401896 | #4913. 子集匹配 | ZhaoZiLong | Compile Error | / | / | C++17 | 196b | 2024-04-29 16:21:32 | 2024-04-29 16:21:32 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
implementer.cpp: In function ‘int main()’: implementer.cpp:37:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 37 | scanf("%d %d",&n,&K); assert(1<=n&&n<=27&&2*K>n); | ~~~~~^~~~~~~~~~~~~~~ answer.code: In function ‘int solve(int, int, int)’: answer.code:4:14: error: ‘pair’ is not a member of ‘std’ 4 | std::pair<int,int> minn={0,0}; | ^~~~ answer.code:2:1: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? 1 | #include"hall.h" +++ |+#include <utility> 2 | int solve(int n,int K,int s) answer.code:4:19: error: expected primary-expression before ‘int’ 4 | std::pair<int,int> minn={0,0}; | ^~~ answer.code:8:17: error: ‘minn’ was not declared in this scope 8 | minn=std::min(minn,{S,-i-1}); | ^~~~ answer.code:8:27: error: ‘min’ is not a member of ‘std’ 8 | minn=std::min(minn,{S,-i-1}); | ^~~ answer.code:10:23: error: ‘minn’ was not declared in this scope 10 | return s^(1<<-minn.second); | ^~~~