QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#773746#5147. Stack SortHuangHanShengCompile Error//C++98359b2024-11-23 10:13:192024-11-23 10:13:24

詳細信息

answer.code: In function ‘int main()’:
answer.code:9:9: error: ‘unordered_map’ was not declared in this scope
    9 |         unordered_map<int,int> M ;
      |         ^~~~~~~~~~~~~
answer.code:9:9: note: ‘std::unordered_map’ is only available from C++11 onwards
answer.code:9:23: error: expected primary-expression before ‘int’
    9 |         unordered_map<int,int> M ;
      |                       ^~~
answer.code:14:17: error: ‘M’ was not declared in this scope
   14 |             if(!M[t+1]){
      |                 ^
answer.code:17:13: error: ‘M’ was not declared in this scope
   17 |             M[t]=1;
      |             ^