/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void dijkstra_heap(int)':
/in/foo.cc:36:14: error: expected unqualified-id before '[' token
         auto [w, p] = q.top();
              ^
/in/foo.cc:38:15: error: 'p' was not declared in this scope
         if (d[p] != w) continue;  // dp[p] != w 表示 p 已经访问过
               ^
/in/foo.cc:38:21: error: 'w' was not declared in this scope
         if (d[p] != w) continue;  // dp[p] != w 表示 p 已经访问过
                     ^
/in/foo.cc:41:18: error: 'p' was not declared in this scope
         repe (i, p) {
                  ^
/in/foo.cc:2:38: note: in definition of macro 'repe'
 #define repe(i, u) for (int i = head[u]; i != -1; i = nxt[i])
                                      ^

信息

递交者
类型
递交
题目
P1391 想越狱的小杉
语言
C++
递交时间
2024-04-02 12:33:14
评测时间
2024-04-02 12:33:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes