QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#500833 | #9156. 百万富翁 | zzzcr | Compile Error | / | / | C++14 | 583b | 2024-08-01 21:25:08 | 2024-08-01 21:25:08 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int richest(int, int, int)’: answer.code:14:17: error: ‘memset’ was not declared in this scope 14 | memset(cnt, 0, sizeof cnt); | ^~~~~~ answer.code:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 1 | #include "richest.h" +++ |+#include <cstring> 2 | using namespace std; answer.code:19:1: warning: control reaches end of non-void function [-Wreturn-type] 19 | } | ^