QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#773545#5147. Stack SortGuanYunchangCompile Error//C++11391b2024-11-23 09:19:152024-11-23 09:19:16

詳細信息

answer.code: In function ‘int main()’:
answer.code:12:17: error: ‘memset’ was not declared in this scope
   12 |                 memset(a, 0, sizeof(a));
      |                 ^~~~~~
answer.code:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    2 | #include<iostream>
  +++ |+#include <cstring>
    3 | #include<string>