실행 실패 (제출 코드 컴파일 에러)
Main.cpp:14:9: error: ‘unordered_map’ does not name a type 14 | unordered_map<int, int> history; | ^~~~~~~~~~~~~ Main.cpp: In member function ‘void Data::Insert(int)’: Main.cpp:20:17: error: ‘history’ was not declared in this scope 20 | history[Num]++; | ^~~~~~~ Main.cpp: In member function ‘void Data::Empty()’: Main.cpp:25:41: error: ‘history’ was not declared in this scope 25 | while(!Maxpq.empty() && history[Maxpq.top()] == 0) | ^~~~~~~ Main.cpp:30:41: error: ‘history’ was not declared in this scope 30 | while(!Minpq.empty() && history[Minpq.top()] == 0) | ^~~~~~~ Main.cpp: In member function ‘void Data::Remove(int)’: Main.cpp:43:25: error: ‘history’ was not declared in this scope 43 | history[Maxpq.top()]--; | ^~~~~~~ Main.cpp:49:25: error: ‘history’ was not declared in this scope 49 | history[Minpq.top()]--; | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.