パニック
「パニック」を扱った18問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- Rust / WRITE · 2026-11-19 途中で切れたログの末尾 WAL, 障害回復, 途中で切れた記録, スライスの分割, torn write, crash recovery, split_at_checked
- Zig / DEBUG · 2026-11-15 1バイトずれたu32を読む @alignCast, @ptrCast, アラインメント, align(1), incorrect alignment, ポインタの型変換, unaligned read, pointer alignment
- Zig / DEBUG · 2026-11-13 要素の型で合計する @TypeOf, anytype, 合計のオーバーフロー, u8, 平均, illegal behavior, integer overflow, accumulator type
- Rust / DEBUG · 2026-11-10 1文字目だけ残す 文字列スライス, バイト位置, 文字境界, UTF-8, char_indices, chars, メールアドレスのマスキング, char boundary, string slicing
- Zig / DEBUG · 2026-11-07 有効でない側への代入 タグ付きunion, union(enum), 有効なフィールド, フィールドへの代入, 安全検査, illegal behavior, tagged union, active field, inactive union field
- Rust / DEBUG · 2026-11-02 文の終わりまで残る借用 RefCell, 二重借用, 一時オブジェクトの寿命, BorrowMutError, already borrowed, temporary lifetime, arena allocation
- Rust / DEBUG · 2026-11-01 斜めの差で落ちる Nクイーン, 枝刈り, usize, 引き算のオーバーフロー, abs_diff, attempt to subtract with overflow, N-queens
- Rust / DEBUG · 2026-10-28 newを通らない既定値 Defaultトレイト, derive(Default), newとDefaultの食い違い, chunks(0), 構造体更新記法, default values, constructor
- Rust / DEBUG · 2026-10-25 版を確かめた借用が残る 楽観的ロック, 版番号の確認, RefCell の二重借用, Ref の生存期間, BorrowMutError, optimistic locking, already borrowed
- Rust / DEBUG · 2026-10-24 大きさ0の要素で割る ゼロサイズ型, size_of が0, 0除算の panic, checked_div, zero-sized type, divide by zero, ZST, unit type
- Zig / WRITE · 2026-10-21 不正な数字の報告先 @inComptime, @compileError, std.fmt.comptimePrint, std.debug.panic, コンパイル時と実行時の切り替え, compile error, runtime panic
- Rust / DEBUG · 2026-10-20 u32の上限近くの素数 素因数分解, 試し割り, 整数オーバーフロー, 掛け算の桁あふれ, prime factorization, trial division, integer overflow panic
- Rust / WRITE · 2026-10-03 共有されたVecを併合 RefCellの二重借用, Rc::ptr_eq, 一時値の寿命, already borrowed, BorrowMutError, Rc aliasing
- Rust / DEBUG · 2026-10-03 在庫を足して合計 RefCellの借用ガード, already mutably borrowed, RefMutの寿命, BorrowError, borrow guard scope
- Rust / DEBUG · 2026-09-29 容量の2のべき判定 2のべき乗判定, x & (x - 1), 減算のオーバーフロー, リングバッファの容量, power of two check, integer overflow panic, is_power_of_two
- Rust / WRITE · 2026-09-06 空なら割らない平均 bool::then, bool::then_some, 引数の正格評価, 0 での割り算, 整数の平均, eager argument evaluation, divide by zero panic
- Zig / DEBUG · 2026-08-26 起きないはずのエラー catch unreachable, catch continue, エラー共用体, illegal behavior, error union, parseInt
- Rust / DEBUG · 2026-08-26 終わりの256が入らない ビット全探索, シフトのオーバーフロー, 半開区間の終端, u8, shift overflow, bit brute force, exclusive range