/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:43:15: warning: iteration 8010 invokes undefined behavior [-Waggressive-loop-optimizations]
         if(f[i]==1&&std::abs(s-i-i)<min){
            ~~~^
foo.cc:39:14: note: within this loop
     for(i=0;i<80010;i++){
             ~^~~~~~
foo.cc:49:29: warning: 'f2' may be used uninitialized in this function [-Wmaybe-uninitialized]
     std::cout<<f1<<" "<<f2<<"\n";
                             ^~~~
foo.cc:49:20: warning: 'f1' may be used uninitialized in this function [-Wmaybe-uninitialized]
     std::cout<<f1<<" "<<f2<<"\n";
                    ^~~
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 1ms 640.0 KiB
#2 Runtime Error Segmentation fault 3ms 632.0 KiB
#3 Time Exceeded ≥1442ms ≥384.0 KiB
#4 Time Exceeded ≥1444ms ≥384.0 KiB
#5 Time Exceeded ≥1442ms ≥384.0 KiB
#6 Time Exceeded ≥1442ms ≥384.0 KiB
#7 Runtime Error Segmentation fault 2ms 640.0 KiB
#8 Time Exceeded ≥1466ms ≥432.0 KiB
#9 Time Exceeded ≥1467ms ≥416.0 KiB
#10 Time Exceeded ≥1953ms ≥384.0 KiB

信息

递交者
类型
递交
题目
P1153 猫狗大战
语言
C++
递交时间
2020-11-03 16:16:41
评测时间
2020-11-03 16:16:41
评测机
分数
0
总耗时
10666ms
峰值内存
640.0 KiB