/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void dij(int)':
/in/foo.cc:27:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int j=0;j<G1[w].size();j++)
               ~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:71:20: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
    if((a[i]^a[j])&1==1&&(dd==a[i]||dd==a[j]))
                   ~^~~
/in/foo.cc:40:33: warning: iteration 10010 invokes undefined behavior [-Waggressive-loop-optimizations]
  for(int i=0;i<=MAXN;i++)dist[i]=0x7f7f7f7f;
                          ~~~~~~~^~~~~~~~~~~
/in/foo.cc:40:15: note: within this loop
  for(int i=0;i<=MAXN;i++)dist[i]=0x7f7f7f7f;
              ~^~~~~~
/in/foo.cc:39:30: warning: iteration 10010 invokes undefined behavior [-Waggressive-loop-optimizations]
  for(int i=0;i<=MAXN;i++)f[i]=1;
                          ~~~~^~
/in/foo.cc:39:15: note: within this loop
  for(int i=0;i<=MAXN;i++)f[i]=1;
              ~^~~~~~
/in/foo.cc: In function 'void dij(int)':
/in/foo.cc:29:48: warning: 'w' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if(vis[G1[w][j]]==0 && dist[G1[w][j]]>dist[w]+G2[w][j])
                                          ~~~~~~^
# 状态 耗时 内存占用
#1 Accepted 2ms 904.0 KiB
#2 Accepted 2ms 840.0 KiB
#3 Accepted 2ms 916.0 KiB
#4 Accepted 2ms 888.0 KiB
#5 Accepted 2ms 888.0 KiB
#6 Accepted 2ms 856.0 KiB
#7 Accepted 2ms 844.0 KiB
#8 Accepted 14ms 1.066 MiB
#9 Accepted 19ms 1.023 MiB
#10 Accepted 44ms 1.035 MiB

信息

递交者
类型
递交
题目
P1578 渡河
语言
C++
递交时间
2024-06-29 11:28:03
评测时间
2024-06-29 11:28:03
评测机
分数
100
总耗时
93ms
峰值内存
1.066 MiB