记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:21:30: warning: 'ansr' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<ansl/d<<'\n'<<ansr/d<<'\n';
                              ^~~~
/in/foo.cc:21:16: warning: 'ansl' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<ansl/d<<'\n'<<ansr/d<<'\n';
                ^~~~
/in/foo.cc:17:3: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(res<=n&&fabs(1.0*i/res-x)<mn) mn=fabs(1.0*i/res-x),ansl=i,ansr=res;
   ^~
# 状态 耗时 内存占用
#1 Accepted 1ms 192.0 KiB
#2 Accepted 1ms 204.0 KiB
#3 Accepted 1ms 188.0 KiB
#4 Accepted 1ms 188.0 KiB
#5 Accepted 1ms 208.0 KiB
#6 Accepted 2ms 188.0 KiB
#7 Accepted 6ms 192.0 KiB
#8 Accepted 6ms 204.0 KiB
#9 Accepted 102ms 192.0 KiB

信息

递交者
类型
递交
题目
最接近的分数 (four.*)
题目数据
下载
语言
C++
递交时间
2018-10-24 14:22:46
评测时间
2018-10-24 14:22:46
评测机
分数
100
总耗时
126ms
峰值内存
208.0 KiB