/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:60:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   if(check(mid = l + r >> 1)) ans = mid,r = mid - 1;
                  ~~^~~
/in/foo.cc: In function 'void pre()':
/in/foo.cc:28:12: warning: iteration 499999 invokes undefined behavior [-Waggressive-loop-optimizations]
   if(!vis[i])
       ~~~~~^
/in/foo.cc:7:45: note: within this loop
 #define rep(i,x,y) for(register ll i = x ;i <= y; ++i)
/in/foo.cc:26:6:
  rep(i,2,5000000)
      ~~~~~                                   
/in/foo.cc:26:2: note: in expansion of macro 'rep'
  rep(i,2,5000000)
  ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:63:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%lld\n",ans);
  ~~~~~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 21ms 4.59 MiB
#2 Runtime Error 19ms 3.984 MiB
#3 Runtime Error 20ms 3.5 MiB
#4 Runtime Error 20ms 4.598 MiB
#5 Runtime Error 19ms 4.102 MiB
#6 Runtime Error 21ms 3.75 MiB
#7 Runtime Error 21ms 3.836 MiB
#8 Runtime Error 21ms 3.625 MiB
#9 Runtime Error 20ms 3.84 MiB
#10 Runtime Error 20ms 3.348 MiB

信息

递交者
类型
递交
题目
P1889 天真的因数分解
语言
C++
递交时间
2017-10-23 17:49:05
评测时间
2017-10-23 17:49:05
评测机
分数
0
总耗时
207ms
峰值内存
4.598 MiB