Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:22: warning: variable 'a3' set but not used [-Wunused-but-set-variable]
    7 |         double a1,a2,a3;
      |                      ^~
In file included from /usr/include/c++/12/istream:39,
                 from /usr/include/c++/12/sstream:38,
                 from /usr/include/c++/12/complex:45,
                 from /usr/include/c++/12/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:54,
                 from /in/foo.cc:1:
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 /in/foo.cc:21:33:
/usr/include/c++/12/ostream:221:25: warning: 'a1' may be used uninitialized [-Wmaybe-uninitialized]
  221 |       { return _M_insert(__f); }
      |                ~~~~~~~~~^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:16: note: 'a1' was declared here
    7 |         double a1,a2,a3;
      |                ^~
# 状态 耗时 内存占用
#1 Accepted 1ms 532.0 KiB
#2 Accepted 2ms 488.0 KiB
#3 Accepted 2ms 480.0 KiB
#4 Accepted 2ms 484.0 KiB
#5 Accepted 2ms 504.0 KiB
#6 Wrong Answer 2ms 480.0 KiB
#7 Wrong Answer 2ms 484.0 KiB
#8 Wrong Answer 2ms 476.0 KiB
#9 Accepted 1ms 536.0 KiB
#10 Wrong Answer 1ms 532.0 KiB

信息

递交者
类型
递交
题目
P2997 电费计算(money)
语言
C++
递交时间
2026-01-12 21:08:57
评测时间
2026-01-12 21:08:57
评测机
分数
60
总耗时
20ms
峰值内存
536.0 KiB