Wrong Answer

foo.cc: In function ‘bool dfs(int, int, int, int)’:
foo.cc:11:22: warning: unused variable ‘left’ [-Wunused-variable]
   11 |                 bool left=dfs(w1,d1,w2,d2);
      |                      ^~~~
foo.cc:16:22: warning: unused variable ‘right’ [-Wunused-variable]
   16 |                 bool right=dfs(w1,d1,w2,d2);
      |                      ^~~~~
foo.cc:18:19: warning: the address of ‘std::ios_base& std::left(ios_base&)’ will never be NULL [-Waddress]
   18 |         if (left&&right) return true;
      |                   ^~~~~
In file included from /nix/gcc-15.2.0/include/c++/15.2.0/streambuf:45,
                 from /nix/gcc-15.2.0/include/c++/15.2.0/bits/streambuf_iterator.h:37,
                 from /nix/gcc-15.2.0/include/c++/15.2.0/iterator:68,
                 from stdc++.h:56:
/nix/gcc-15.2.0/include/c++/15.2.0/bits/ios_base.h:1077:3: note: ‘std::ios_base& std::left(ios_base&)’ declared here
 1077 |   left(ios_base& __base)
      |   ^~~~
foo.cc:18:19: warning: the address of ‘std::ios_base& std::right(ios_base&)’ will never be NULL [-Waddress]
   18 |         if (left&&right) return true;
      |                   ^~~~~
/nix/gcc-15.2.0/include/c++/15.2.0/bits/ios_base.h:1085:3: note: ‘std::ios_base& std::right(ios_base&)’ declared here
 1085 |   right(ios_base& __base)
      |   ^~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB
#2 Accepted 2ms 512.0 KiB
#3 Accepted 2ms 512.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Wrong Answer On line 1: Read 1, expect 0. 2ms 512.0 KiB
#6 Accepted 2ms 512.0 KiB
#7 Accepted 3ms 424.0 KiB
#8 Accepted 2ms 348.0 KiB
#9 Wrong Answer On line 1: Read 1, expect 0. 2ms 508.0 KiB
#10 Wrong Answer On line 1: Read 1, expect 0. 2ms 508.0 KiB

信息

递交者
类型
递交
题目
P2794 跷跷板 pta202207T4
语言
C++
递交时间
2026-05-07 14:58:38
评测时间
2026-05-07 17:46:22
评测机
分数
70
总耗时
27ms
峰值内存
512.0 KiB