QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#341367#8134. LCA Countingucup-team199Compile Error//C++141.9kb2024-02-29 18:01:442024-02-29 18:01:44

Details

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