QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#354085#8340. 3 Sumucup-team1659Compile Error//C++143.8kb2024-03-14 21:21:022024-03-14 21:21:02

详细

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;
      |                 ~~~~~^~~~~~~~~~~~~~