QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#474887#6749. TargetMaMengQiCompile Error//C++98929b2024-07-13 08:57:552024-07-13 08:57:55

詳細信息

answer.code:5:1: error: ‘unordered_map’ does not name a type
    5 | unordered_map<string,int> d;
      | ^~~~~~~~~~~~~
answer.code: In function ‘std::string bfs(double, double)’:
answer.code:9:30: error: ‘>>’ should be ‘> >’ within a nested template argument list
    9 |     queue <pair<double,string>> q;
      |                              ^~
      |                              > >
answer.code:10:12: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   10 |     q.push({a,""});
      |            ^
answer.code:10:11: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   10 |     q.push({a,""});
      |     ~~~~~~^~~~~~~~
answer.code:11:5: error: ‘d’ was not declared in this scope
   11 |     d[""]=0;
      |     ^
answer.code:27:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   27 |             q.push({nx,ny});
      |                    ^
answer.code:27:19: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   27 |             q.push({nx,ny});
      |             ~~~~~~^~~~~~~~~
answer.code:33:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   33 |             q.push({nx,ny});
      |                    ^
answer.code:33:19: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   33 |             q.push({nx,ny});
      |             ~~~~~~^~~~~~~~~
answer.code:36:1: warning: control reaches end of non-void function [-Wreturn-type]
   36 | }
      | ^