QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#415364#6759. 字符串tzl_Dedicatus545Compile Error//C++203.4kb2024-05-20 20:00:472024-05-20 20:00:49

详细

answer.code: In function ‘int main()’:
answer.code:87:50: error: ‘setprecision’ was not declared in this scope
   87 | {ios::sync_with_stdio(0);cin.tie(0);cerr<<fixed<<setprecision(3)<<(&Mbe-&Med)/1048576.0<<"MiB"<<endl;
      |                                                  ^~~~~~~~~~~~
answer.code:8:1: note: ‘std::setprecision’ is defined in header ‘<iomanip>’; did you forget to ‘#include <iomanip>’?
    7 | #include <vector>
  +++ |+#include <iomanip>
    8 | #define ll long long
answer.code:109:25: error: ‘assert’ was not declared in this scope
  109 |                         assert(ans.cnt((i-1)/2)==0);
      |                         ^~~~~~
answer.code:8:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
    7 | #include <vector>
  +++ |+#include <cassert>
    8 | #define ll long long