/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:57:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<Q1[x].size();i++) t1[dep[Q1[x][i]]]--;
              ~^~~~~~~~~~~~~
/in/foo.cc: In function 'void Dfs(int)':
/in/foo.cc:62:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<Q2[x].size();i++) t2[Q2[x][i]+300000]++;
              ~^~~~~~~~~~~~~
/in/foo.cc:64:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<Q3[x].size();i++) t2[Q3[x][i]+300000]--;
              ~^~~~~~~~~~~~~
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:56:50: warning: 'cun' may be used uninitialized in this function [-Wmaybe-uninitialized]
  t1[dep[x]]+=val[x];if(now<=mxdep) ans[x]=t1[now]-cun;
                                           ~~~~~~~^~~~
/in/foo.cc:56:50: warning: 'cun' may be used uninitialized in this function [-Wmaybe-uninitialized]
  t1[dep[x]]+=val[x];if(now<=mxdep) ans[x]=t1[now]-cun;
                                           ~~~~~~~^~~~
/in/foo.cc:56:50: warning: 'cun' may be used uninitialized in this function [-Wmaybe-uninitialized]
  t1[dep[x]]+=val[x];if(now<=mxdep) ans[x]=t1[now]-cun;
                                           ~~~~~~~^~~~
/in/foo.cc:56:50: warning: 'cun' may be used uninitialized in this function [-Wmaybe-uninitialized]
  t1[dep[x]]+=val[x];if(now<=mxdep) ans[x]=t1[now]-cun;
                                           ~~~~~~~^~~~
/in/foo.cc:56:50: warning: 'cun' may be used uninitialized in this function [-Wmaybe-uninitialized]
  t1[dep[x]]+=val[x];if(now<=mxdep) ans[x]=t1[now]-cun;
                                           ~~~~~~~^~~~
# 状态 耗时 内存占用
#1 Accepted 23ms 36.438 MiB
#2 Accepted 15ms 36.434 MiB
#3 Accepted 14ms 36.43 MiB
#4 Accepted 13ms 34.434 MiB
#5 Accepted 16ms 36.438 MiB
#6 Accepted 88ms 48.973 MiB
#7 Accepted 125ms 49.906 MiB
#8 Accepted 102ms 49.812 MiB
#9 Accepted 66ms 42.867 MiB
#10 Accepted 69ms 42.918 MiB
#11 Accepted 99ms 46.234 MiB
#12 Accepted 67ms 44.348 MiB
#13 Accepted 73ms 41.348 MiB
#14 Accepted 65ms 41.348 MiB
#15 Accepted 61ms 47.539 MiB
#16 Accepted 74ms 42.879 MiB
#17 Accepted 73ms 41.215 MiB
#18 Accepted 74ms 43.043 MiB
#19 Accepted 73ms 42.66 MiB
#20 Accepted 279ms 54.41 MiB

信息

递交者
类型
递交
题目
P2004 天天爱跑步
语言
C++
递交时间
2017-09-30 09:43:37
评测时间
2017-09-30 09:43:37
评测机
分数
100
总耗时
1477ms
峰值内存
54.41 MiB