QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#401895 | #4913. 子集匹配 | MaMengQi | Compile Error | / | / | C++17 | 186b | 2024-04-29 16:20:29 | 2024-04-29 16:20:29 |
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:9: error: ‘pair’ was not declared in this scope 4 | pair<int,int> minn={0,0}; | ^~~~ answer.code:4:14: error: expected primary-expression before ‘int’ 4 | pair<int,int> minn={0,0}; | ^~~ answer.code:8:17: error: ‘minn’ was not declared in this scope 8 | minn=min(minn,{S,-i-1}); | ^~~~ answer.code:8:22: error: ‘min’ was not declared in this scope 8 | minn=min(minn,{S,-i-1}); | ^~~ answer.code:10:23: error: ‘minn’ was not declared in this scope 10 | return s^(1<<-minn.second); | ^~~~