QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#786734 | #9783. Duloc Network | ucup-team5046 | Compile Error | / | / | C++14 | 2.3kb | 2024-11-26 23:10:23 | 2024-11-26 23:10:24 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:28:5: error: ‘memset’ was not declared in this scope 28 | memset(in,0,sizeof(in)); | ^~~~~~ answer.code:4:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 3 | #include<algorithm> +++ |+#include <cstring> 4 | using namespace std; answer.code: In function ‘int query(std::vector<int>)’: answer.code:18:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%d",&y); | ~~~~~^~~~~~~~~ answer.code: In function ‘int main()’: answer.code:25:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 25 | scanf("%d",&n); | ~~~~~^~~~~~~~~