/ ep /

记录详情

Runtime Error

/in/foo.cc: In function 'int sum(int, int)':
/in/foo.cc:10:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return ans;
         ^~~
/in/foo.cc: In function 'void case1()':
/in/foo.cc:24:17: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
    cout<<sum(l,r)<<endl; 
                 ^
/in/foo.cc: In function 'void setup_ta()':
/in/foo.cc:68:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   ta[i]=sum(i-get_lowbits(i),i);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:68:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   ta[i]=sum(i-get_lowbits(i),i);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:6:6: note: 'ans' was declared here
  int ans,p=l;
      ^~~
# 状态 耗时 内存占用
#1 Runtime Error 9ms 2.199 MiB
#2 Time Exceeded ≥1000ms ≥2.258 MiB
#3 Time Exceeded ≥1000ms ≥2.195 MiB
#4 Time Exceeded ≥1000ms ≥2.195 MiB
#5 Time Exceeded ≥1002ms ≥2.535 MiB
#6 Time Exceeded ≥1000ms ≥2.68 MiB
#7 Time Exceeded ≥1000ms ≥2.68 MiB
#8 Time Exceeded ≥1001ms ≥2.68 MiB
#9 Time Exceeded ≥1001ms ≥2.68 MiB
#10 Time Exceeded ≥1004ms ≥2.68 MiB

信息

递交者
类型
递交
题目
P1005 动态区间求和
语言
C++
递交时间
2019-11-01 21:36:41
评测时间
2019-11-01 21:36:41
评测机
分数
0
总耗时
9021ms
峰值内存
2.68 MiB