QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#401895#4913. 子集匹配MaMengQiCompile Error//C++17186b2024-04-29 16:20:292024-04-29 16:20:29

详细

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