結果

問題 No.8042 本棚
コンテスト
ユーザー tatt61880
提出日時 2019-04-01 21:20:11
言語 Kuin
(KuinC++ v.2021.9.17)
コンパイル:
kuinc -i _filename_ -o out.cpp -s /kuin/sys/ -e cpp -r -q
実行:
./a.out
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 148 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,131 ms
コンパイル使用メモリ 166,784 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-02-11 18:58:37
合計ジャッジ時間 3,316 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
out.cpp:676:14: warning: first argument in call to 'memset' is a pointer to non-trivially copyable type 'std::shared_ptr<Array_<char16_t>>' [-Wnontrivial-memcall]
  676 |                         memset(r->B, 0, sizeof(T) * static_cast<std::size_t>(h + bufLen_<T>()));
      |                                   ^
out.cpp:688:9: note: in instantiation of function template specialization 'newArraysRec_<std::shared_ptr<Array_<std::shared_ptr<Array_<char16_t>>>>>::operator()<long>' requested here
  688 |         return newArraysRec_<T>()(std::forward<A>(a)...);
      |                ^
out.cpp:1608:11: note: in instantiation of function template specialization 'newArrays_<std::shared_ptr<Array_<std::shared_ptr<Array_<char16_t>>>>, long>' requested here
 1608 | (k_am) = (newArrays_<type_(Array_<type_(Array_<char16_t>)>)>(((k_an)(((k_ao)()), (std::memset(&k_ap, 0, sizeof(bool)), &k_ap)))));
      |           ^
out.cpp:676:14: note: explicitly cast the pointer to silence this warning
  676 |                         memset(r->B, 0, sizeof(T) * static_cast<std::size_t>(h + bufLen_<T>()));
      |                                   ^
      |                                (void*)
1 warning generated.

ソースコード

diff #
raw source code

func main()
var a:[][]char::#[cui@input().toInt(&)][]char
for i(0,^a-1)
do a[i]::cui@input()
end for
do a.sort()
do cui@print(a.join("\n"))
end func
0