/ ep /

记录详情

Runtime Error

/in/foo.cc: In function 'long long int sum(int, int)':
/in/foo.cc:13:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return ans;
         ^~~
/in/foo.cc: In function 'void case1()':
/in/foo.cc:11:6: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   ans+=a[p++];
   ~~~^~~~~~~~
/in/foo.cc:8:12: note: 'ans' was declared here
  long long ans;
            ^~~
/in/foo.cc: In function 'void setup_ta()':
/in/foo.cc:71: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:71:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   ta[i]=sum(i-get_lowbits(i),i);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:8:12: note: 'ans' was declared here
  long long ans;
            ^~~
# 状态 耗时 内存占用
#1 Runtime Error 10ms 3.82 MiB
#2 Wrong Answer 12ms 3.941 MiB
#3 Wrong Answer 13ms 3.688 MiB
#4 Wrong Answer 12ms 2.699 MiB
#5 Time Exceeded ≥1000ms ≥5.965 MiB
#6 Time Exceeded ≥1002ms ≥3.605 MiB
#7 Time Exceeded ≥1000ms ≥2.961 MiB
#8 Time Exceeded ≥1000ms ≥3.711 MiB
#9 Time Exceeded ≥1000ms ≥3.941 MiB
#10 Time Exceeded ≥1001ms ≥2.965 MiB

信息

递交者
类型
递交
题目
P1005 动态区间求和
语言
C++
递交时间
2019-11-03 20:57:13
评测时间
2019-11-03 20:57:13
评测机
分数
0
总耗时
6055ms
峰值内存
5.965 MiB