QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#836462#9922. Mah-jongucup-team3556#Compile Error//C++201.8kb2024-12-28 20:57:042024-12-28 20:57:05

Details

answer.code: In function ‘void solve()’:
answer.code:58:13: error: ‘unordered_map’ was not declared in this scope
   58 |             unordered_map<int, int> mp;
      |             ^~~~~~~~~~~~~
answer.code:6:1: note: ‘std::unordered_map’ is defined in header ‘<unordered_map>’; did you forget to ‘#include <unordered_map>’?
    5 | #include <map>
  +++ |+#include <unordered_map>
    6 | using namespace std;
answer.code:58:27: error: expected primary-expression before ‘int’
   58 |             unordered_map<int, int> mp;
      |                           ^~~
answer.code:64:39: error: ‘mp’ was not declared in this scope
   64 |                     if(r2 - l > 50 && mp[r2] == 0)
      |                                       ^~