/ Vijos /

记录详情

Accepted

foo.cc: In function 'bool bfs()':
foo.cc:44:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for( register int i = 0 ; i < linker[ now ].size() ; i++ )
                           ~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int dinic(int, int)':
foo.cc:54:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for( register int i = cur[ now ] ; i < linker[ now ].size() ; i++ )
                                    ~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:79:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
 while( bfs() ) while( temp = dinic( s , inf ) ) ans -= temp;
                       ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:70:61: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 for( register int i = 1 ; i <= n ; i++ ) scanf( "%d" , &a ) , addedge( i , t , a );
                                          ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:73:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf( "%d %d %d" , &a , &b , &c );
 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 2.086 MiB
#2 Accepted 4ms 2.086 MiB
#3 Accepted 6ms 2.211 MiB
#4 Accepted 6ms 2.215 MiB
#5 Accepted 6ms 2.211 MiB
#6 Accepted 6ms 2.211 MiB
#7 Accepted 6ms 2.227 MiB
#8 Accepted 6ms 2.133 MiB
#9 Accepted 365ms 8.953 MiB
#10 Accepted 355ms 8.965 MiB

信息

递交者
类型
递交
题目
P1352 最大获利
语言
C++
递交时间
2021-08-10 21:42:59
评测时间
2021-08-10 21:42:59
评测机
分数
100
总耗时
768ms
峰值内存
8.965 MiB