暗黙の型変換
「暗黙の型変換」を扱った19問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- C++ / WRITE · 2026-11-16 ビットを指す代理を返す 代理オブジェクト, プロキシクラス, vector<bool>::reference, 変換演算子, コピー代入演算子, 参照メンバ, proxy object, conversion operator, bit packing
- C / DEBUG · 2026-11-14 条件演算子1つに型は1つ _Generic, 条件演算子の型, 通常の算術変換, 符号なし整数への変換, generic selection, conditional operator, usual arithmetic conversions
- C / READ · 2026-11-09 引数と戻り値の型変換 引数の型変換, 戻り値の型変換, 0方向への切り捨て, 整数の割り算, 関数プロトタイプ, argument conversion, return type conversion, truncation toward zero
- C / DEBUG · 2026-11-09 見つからない時の-1 戻り値の判定, 見つからないときの-1, 0は偽, 0以外は真, 番兵値, 線形探索, return value check, sentinel value, truthiness
- C++ / DEBUG · 2026-10-28 9番目から消えるフラグ ビットフラグ, 符号なし整数への変換, 戻り値の暗黙の変換, 上位ビットの切り捨て, bit flags, narrowing conversion, implicit conversion
- C / WRITE · 2026-10-24 doubleに正確に入る整数 2^53, 倍精度で表せる整数, 仮数部53ビット, INT64_MIN の符号反転, exactly representable integer, double precision, significand
- C / READ · 2026-10-24 2^53+1の往復 2^53, 倍精度で表せる整数, 通常の算術型変換, 最近接偶数丸め, usual arithmetic conversions, round half to even, double precision integer
- C / DEBUG · 2026-10-20 0で始めた合計 C23 auto, 型推論, 複合代入の型変換, 小数部の切り捨て, 整数除算, type inference, implicit conversion, integer division
- C++ / DEBUG · 2026-10-12 右から伝わる切り捨て 連鎖代入, 代入演算子の右結合, 代入式の値, double から int への切り捨て, chained assignment, right associativity, floating-integral conversion
- C / DEBUG · 2026-10-11 変化の回数が多すぎる 代入による型変換, float と double の比較, 0.1 の丸め, 通常の算術変換, assignment conversion, float double comparison, usual arithmetic conversions
- C++ / DEBUG · 2026-10-01 面積の0.5が消える 整数除算, 戻り値の型変換, 切り捨て, 靴紐公式, integer division, implicit conversion to double, shoelace formula
- C++ / DEBUG · 2026-09-25 uint16_tの掛け算 整数昇格, 符号つきオーバーフロー, 未定義動作, 符号なし同士の掛け算, integer promotion, signed integer overflow, usual arithmetic conversions
- C++ / DEBUG · 2026-09-18 取りこぼしたvisit 網羅性, オーバーロード解決, 暗黙変換, std::visit
- C++ / WRITE · 2026-09-16 explicitで防ぐ explicit, 暗黙の変換, 変換コンストラクタ, explicit constructor
- C++ / READ · 2026-09-16 暗黙の変換が起きる 暗黙の型変換, explicit, 変換コンストラクタ, implicit conversion
- C++ / DEBUG · 2026-09-16 暗黙変換が隠すバグ 暗黙の型変換, 単位の取り違え, explicit, implicit conversion
- C / DEBUG · 2026-09-02 符号なし座標の外積 符号なし整数の引き算, 回り込み, 外積, 3点の向き, unsigned wraparound, cross product, orientation
- C++ / DEBUG · 2026-08-31 環の左隣が先頭になる 符号なしへの変換, size_t, 環状バッファの添字, 剰余と負の数, signed unsigned conversion, usual arithmetic conversions, ring buffer index
- C++ / DEBUG · 2026-08-28 optionalの真偽値 std::optional<bool> の3つの値, optional の bool 変換, has_value と値の取り違え, value_or, optional bool pitfall, contextual conversion to bool