/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'll calc(int, ll, ll)':
/in/foo.cc:32:51: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
 inline ll calc(int u,ll s,ll h){return ch[u][1]?(s-h<<1):((a[u]<<1)>s?(s-a[u]<<1):s-1);}
                                                  ~^~
/in/foo.cc:32:73: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
 inline ll calc(int u,ll s,ll h){return ch[u][1]?(s-h<<1):((a[u]<<1)>s?(s-a[u]<<1):s-1);}
                                                                        ~^~~~~
/in/foo.cc: In function 'void rot(int)':
/in/foo.cc:38:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if(ch[fa][d]=ch[o][d^1])f[ch[fa][d]]=fa;
                            ^
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:58:34: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     ans+=(maxn<<1)>sum[u]?(sum[u]-maxn<<1):sum[u]-1;
                            ~~~~~~^~~~~
# 状态 耗时 内存占用
#1 Accepted 5ms 300.0 KiB
#2 Runtime Error 16ms 15.211 MiB
#3 Runtime Error 13ms 15.207 MiB
#4 Accepted 43ms 15.371 MiB
#5 Accepted 47ms 15.371 MiB
#6 Accepted 104ms 17.281 MiB
#7 Accepted 116ms 17.215 MiB
#8 Accepted 103ms 17.234 MiB
#9 Runtime Error 58ms 25.488 MiB
#10 Runtime Error 70ms 25.527 MiB

信息

递交者
类型
递交
题目
P2043 历史
语言
C++
递交时间
2019-06-09 15:36:41
评测时间
2019-06-09 15:36:41
评测机
分数
60
总耗时
579ms
峰值内存
25.527 MiB