/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'double minimum_cost_flow(int, int)':
/in/foo.cc:93:9: error: request for member 'v' in 'p', which is of pointer type 'node*' (maybe you meant to use '->' ?)
 if ((p).v>0&&dist[u](*p).c>dist[(*p).t]){
         ^
/in/foo.cc:93:24: error: expression cannot be used as a function
 if ((p).v>0&&dist[u](*p).c>dist[(*p).t]){
                        ^
/in/foo.cc:94:10: error: request for member 't' in 'p', which is of pointer type 'node*' (maybe you meant to use '->' ?)
 dist[(p).t]=dist[u](*p).c;
          ^
/in/foo.cc:94:23: error: expression cannot be used as a function
 dist[(p).t]=dist[u](*p).c;
                       ^
/in/foo.cc:101:7: error: request for member 'next' in 'p', which is of pointer type 'node*' (maybe you meant to use '->' ?)
 p=(p).next;
       ^~~~

信息

递交者
类型
递交
题目
P1621 终极情报网
语言
C++
递交时间
2024-08-07 11:16:46
评测时间
2024-08-07 11:16:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes