結果
| 問題 | No.547 未知の言語 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-29 02:30:51 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 1,556 ms |
| コンパイル使用メモリ | 167,260 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-05 16:06:34 |
| 合計ジャッジ時間 | 2,471 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
コンパイルメッセージ
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:1615:11: note: in instantiation of function template specialization 'newArrays_<std::shared_ptr<Array_<std::shared_ptr<Array_<char16_t>>>>, long>' requested here
1615 | (k_ao) = (newArrays_<type_(Array_<type_(Array_<char16_t>)>)>((k_am)));
| ^
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.
ソースコード
func main()
var n: int :: cui@inputInt()
var s: [][]char :: #[n][]char
var t: [][]char :: #[n][]char
for i(0, n - 1)
do s[i] :: cui@inputStr()
end for
for i(0, n - 1)
do t[i] :: cui@inputStr()
end for
for i(0, n - 1)
if(s[i] <> t[i])
do cui@print("\{i + 1}\n")
do cui@print("\{s[i]}\n")
do cui@print("\{t[i]}\n")
end if
end for
end func