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