/ 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, int)':
/in/foo.cc:59:34: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     ans+=(maxn<<1)>sum[u]?(sum[u]-maxn<<1):sum[u]-1;
                            ~~~~~~^~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 336.0 KiB
#2 Runtime Error 15ms 15.207 MiB
#3 Runtime Error 14ms 15.207 MiB
#4 Accepted 43ms 15.371 MiB
#5 Accepted 46ms 15.371 MiB
#6 Accepted 104ms 17.211 MiB
#7 Accepted 121ms 17.238 MiB
#8 Accepted 102ms 17.215 MiB
#9 Runtime Error 58ms 25.445 MiB
#10 Runtime Error 81ms 25.473 MiB

信息

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