QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#68015#5015. 树goodmanCompile Error//C++1.1kb2022-12-14 01:42:082022-12-14 01:42:11

详细

implementer.cpp: In function ‘void regduj260135279::init()’:
implementer.cpp:32:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   32 |                 scanf("%d",&n);
      |                 ~~~~~^~~~~~~~~
implementer.cpp:45:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   45 |                         scanf("%d%d",&u,&v);
      |                         ~~~~~^~~~~~~~~~~~~~
answer.code: In function ‘void solve(std::vector<int>, std::vector<int>)’:
answer.code:14:9: error: ‘rand_shuffle’ was not declared in this scope
   14 |         rand_shuffle(A.begin(),A.end());
      |         ^~~~~~~~~~~~