QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#391036#3733. 地铁ucup-team1383Compile Error//C++981.8kb2024-04-16 12:18:582024-04-16 12:18:58

詳細信息

answer.code: In function ‘long long int dijstra()’:
answer.code:37:56: error: ‘>>’ should be ‘> >’ within a nested template argument list
   37 |     priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> op;
      |                                                        ^~
      |                                                        > >
answer.code:37:81: error: ‘>>’ should be ‘> >’ within a nested template argument list
   37 |     priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> op;
      |                                                                                 ^~
      |                                                                                 > >
answer.code:65:25: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   65 |                 op.push({dist[x], x});
      |                         ^
answer.code:65:24: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   65 |                 op.push({dist[x], x});
      |                 ~~~~~~~^~~~~~~~~~~~~~
answer.code:69:1: warning: control reaches end of non-void function [-Wreturn-type]
   69 | }
      | ^