QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#463750#8313. Nim CheatermekoszcCompile Error//C++141.0kb2024-07-05 13:39:512024-07-05 13:39:51

詳細信息

answer.code: In function ‘void dfs(int)’:
answer.code:23:37: error: ‘class std::vector<int>’ has no member named ‘shirink_to_fit’; did you mean ‘shrink_to_fit’?
   23 |                 dp[x].clear(),dp[x].shirink_to_fit();
      |                                     ^~~~~~~~~~~~~~
      |                                     shrink_to_fit
answer.code: In function ‘int main()’:
answer.code:39:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   39 |         scanf("%d",&m);
      |         ~~~~~^~~~~~~~~
answer.code:43:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   43 |                 scanf("%s",str);
      |                 ~~~~~^~~~~~~~~~
answer.code:51:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   51 |                         scanf("%d%d",a+k,b+k);
      |                         ~~~~~^~~~~~~~~~~~~~~~