记录详情

Compile Error

/in/foo.cc:3:1: warning: 'typedef' was ignored in this declaration
 typedef struct Edge
 ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:17: error: 'INFINITY' was not declared in this scope
   distance[i] = INFINITY;
                 ^~~~~~~~
/in/foo.cc:22:17: note: suggested alternative: 'NFDBITS'
   distance[i] = INFINITY;
                 ^~~~~~~~
                 NFDBITS
/in/foo.cc:29:17: error: 'INFINITY' was not declared in this scope
   distance[i] = INFINITY;
                 ^~~~~~~~
/in/foo.cc:29:17: note: suggested alternative: 'NFDBITS'
   distance[i] = INFINITY;
                 ^~~~~~~~
                 NFDBITS
/in/foo.cc:39:28: error: 'INFINITY' was not declared in this scope
    if (distance[e[i].s] != INFINITY && distance[e[i].t] >(distance[e[i].s] + e[i].cost))
                            ^~~~~~~~
/in/foo.cc:39:28: note: suggested alternative: 'NFDBITS'
    if (distance[e[i].s] != INFINITY && distance[e[i].t] >(distance[e[i].s] + e[i].cost))
                            ^~~~~~~~
                            NFDBITS
/in/foo.cc:11:12: warning: unused variable 'result' [-Wunused-variable]
  int i, n, result = 1, j = 0, s, t;
            ^~~~~~
/in/foo.cc:11:24: warning: unused variable 'j' [-Wunused-variable]
  int i, n, result = 1, j = 0, s, t;
                        ^

信息

递交者
类型
递交
题目
5 城市中的最短路径
比赛
小兰赛 2018/12/2
语言
C++
递交时间
2018-12-02 11:18:16
评测时间
2018-12-02 11:18:16
评测机
分数
0
总耗时
291ms
峰值内存
29.562 MiB