/ Vijos /

记录详情

Compile Error

/in/foo.cc: In constructor 'edgenode::edgenode(int, int, double, int)':
/in/foo.cc:33:16: warning: 'edgenode::cost' will be initialized after [-Wreorder]
   33 |         double cost;
      |                ^~~~
/in/foo.cc:32:23: warning:   'int edgenode::next' [-Wreorder]
   32 |         int to, flow, next;
      |                       ^~~~
/in/foo.cc:34:9: warning:   when initialized here [-Wreorder]
   34 |         edgenode(int T = 0, int F = 0, double C = 0.0, int N = 0) : to(T), flow(F), cost(C), next(N) {}
      |         ^~~~~~~~
/in/foo.cc: In function 'bool Dijkstra(int, int)':
/in/foo.cc:137:77: error: expected ')' before '{' token
  137 |                         if (y.flow && ((cost[y.to] > cost[x.dot] + y.cost) )
      |                            ~                                                ^
      |                                                                             )
  138 |                         {
      |                         ~                                                    
/in/foo.cc:143:17: error: expected primary-expression before '}' token
  143 |                 }
      |                 ^

信息

递交者
类型
递交
题目
P1228 拯救世界-星际大战
语言
C++
递交时间
2025-04-23 16:19:27
评测时间
2025-04-23 16:19:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes