QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#132211#2920. Ultimate Binary WatchZhaoZiLongCompile Error//C++201002b2023-07-29 04:39:472023-07-29 04:39:48

詳細信息

answer.code: In function ‘int main()’:
answer.code:11:26: error: ‘bitset’ was not declared in this scope
   11 |     string time_binary = bitset<16>(stoi(time)).to_string();
      |                          ^~~~~~~~~~
answer.code:2:1: note: ‘std::bitset’ is defined in header ‘<bitset>’; did you forget to ‘#include <bitset>’?
    1 | #include <iostream>
  +++ |+#include <bitset>
    2 | #include <string>