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)提供评测服务