记录详情

Compile Error

foo.cc:6:13: error: expected initializer before numeric constant
    6 | const int N 1e9;
      |             ^~~
foo.cc: In function 'void update(int, int)':
foo.cc:25:13: error: 'now' was not declared in this scope
   25 |         if (now.dis + i->dis < dis[i->id]) Q.push(node(i->id, dis[i->id] = now.dis + i->dis));
      |             ^~~
foo.cc:25:23: error: 'i' was not declared in this scope; did you mean 'id'?
   25 |         if (now.dis + i->dis < dis[i->id]) Q.push(node(i->id, dis[i->id] = now.dis + i->dis));
      |                       ^
      |                       id
foo.cc: In function 'int main()':
foo.cc:41:26: error: 'N' was not declared in this scope
   41 |                 dis[i] = N;
      |                          ^
foo.cc:54:42: error: 'N' was not declared in this scope
   54 |                 ans = max(ans, dis[i] == N ? 0 : dis[i]);
      |                                          ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
秘密 (secret.*)
题目数据
下载
语言
C++
递交时间
2023-10-02 23:04:10
评测时间
2023-10-02 23:04:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes