QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#341366#8134. LCA Countingucup-team199#Compile Error//C++141.9kb2024-02-29 18:01:262024-02-29 18:01:27

详细

answer.code: In function ‘int main()’:
answer.code:66:11: error: ‘class std::set<std::pair<int, int> >’ has no member named ‘erease’; did you mean ‘erase’?
   66 |         S.erease(S.rbegin());
      |           ^~~~~~
      |           erase
answer.code:32:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   32 |   scanf("%d", &n);
      |   ~~~~~^~~~~~~~~~
answer.code:35:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   35 |     scanf("%d", &p);
      |     ~~~~~^~~~~~~~~~