QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#401896#4913. 子集匹配ZhaoZiLongCompile Error//C++17196b2024-04-29 16:21:322024-04-29 16:21:32

詳細信息

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);
      |                       ^~~~