/ TYWZ /

记录详情

Compile Error

/in/foo.cc: In function 'int dijkstra(int, int, int)':
/in/foo.cc:25:24: error: no type named 'value_type' in 'struct cmp'
  priority_queue<pii,cmp> pq;
                        ^
/in/foo.cc:25:24: error: template argument 3 is invalid
/in/foo.cc:29:5: error: request for member 'push' in 'pq', which is of non-class type 'int'
  pq.push(mp(0,s));
     ^~~~
/in/foo.cc:31:11: error: request for member 'size' in 'pq', which is of non-class type 'int'
  while(pq.size()){
           ^~~~
/in/foo.cc:32:15: error: request for member 'top' in 'pq', which is of non-class type 'int'
   auto p = pq.top();pq.pop();
               ^~~
/in/foo.cc:32:24: error: request for member 'pop' in 'pq', which is of non-class type 'int'
   auto p = pq.top();pq.pop();
                        ^~~
/in/foo.cc:35:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<edges[c].size();i++){
               ~^~~~~~~~~~~~~~~~
/in/foo.cc:39:8: error: request for member 'push' in 'pq', which is of non-class type 'int'
     pq.push(mp(d[e.first], e.first));
        ^~~~

信息

递交者
类型
递交
题目
图结构练习 - 最短路(大规模数据)
语言
C++
递交时间
2018-06-06 17:23:34
评测时间
2018-06-06 17:23:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes