QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#354085 | #8340. 3 Sum | ucup-team1659 | Compile Error | / | / | C++14 | 3.8kb | 2024-03-14 21:21:02 | 2024-03-14 21:21:02 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int main()’: answer.code:119:33: error: ‘assert’ was not declared in this scope 119 | assert(prt<=2*n*n); | ^~~~~~ answer.code:6:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’? 5 | #include<cstdlib> +++ |+#include <cassert> 6 | answer.code:72:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 72 | scanf("%s", a[i]+1), p[i]=i; | ~~~~~^~~~~~~~~~~~~~