记录详情

Wrong Answer

foo.cc: In function 'void solve()':
foo.cc:15:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct std::pair<int, int>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
   15 |         memcpy(h, g, sizeof g);
      |         ~~~~~~^~~~~~~~~~~~~~~~
In file included from /nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/bits/stl_algobase.h:64,
                 from /nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/string:50,
                 from /nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/bits/locale_classes.h:40,
                 from /nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/bits/ios_base.h:41,
                 from /nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/ios:42,
                 from /nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/istream:38,
                 from /nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/sstream:38,
                 from /nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/complex:45,
                 from /nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/ccomplex:39,
                 from stdc++.h:54:
/nix/store/np14qqgvvnyna3vv640hmhi21flymiia-gcc-12.2.0/include/c++/12.2.0/bits/stl_pair.h:185:12: note: 'struct std::pair<int, int>' declared here
  185 |     struct pair
      |            ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 1.027 MiB
#2 Wrong Answer Read 6, expect 7. 4ms 1.027 MiB

信息

递交者
类型
递交
题目
P1408 Problem 5C. 旋转数组
比赛
悬赏令第五周
语言
C++
递交时间
2023-05-26 18:51:58
评测时间
2023-05-26 18:51:58
评测机
分数
50
总耗时
9ms
峰值内存
1.027 MiB