记录详情

Runtime Error

In file included from iostream:39:
In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>]',
    inlined from 'int main()' at foo.cc:23:10:
/nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/ostream:221:25: warning: 'g' may be used uninitialized [-Wmaybe-uninitialized]
  221 |       { return _M_insert(__f); }
      |                ~~~~~~~~~^~~~~
foo.cc: In function 'int main()':
foo.cc:17:16: note: 'g' was declared here
   17 |         double g;
      |                ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 332.0 KiB
#5 Runtime Error Floating point exception 10ms 456.0 KiB

信息

递交者
类型
递交
题目
5-3 最大公约数
语言
C++
递交时间
2023-10-13 19:49:59
评测时间
2023-10-13 19:49:59
评测机
分数
80
总耗时
26ms
峰值内存
456.0 KiB