[過去ログ] C言語なら俺に聞け 163 (1002レス)
上下前次1-新
抽出解除 レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
315(1): 2024/11/05(火)06:59 ID:tCS75Iej0(1) AAS
>>295って実行時エラーの話なのかコンパイル時エラーの話なのかもわからなくない?
347: (ワッチョイ 0920-pds3) 2024/11/09(土)18:29 ID:mxjkBfxb0(1) AAS
>>315
どっちもいける
実行時エラー
外部リンク:wandbox.org
> Segmentation fault
コンパイル時エラー
外部リンク:wandbox.org
> prog.c: In function 'main':
> prog.c:8:17: error: '%d' directive writing 11 bytes into a region of size 1 [-Werror=format-overflow=]
> 8 | sprintf(s, "%d", INT_MIN);
> | ^~
> prog.c:8:5: note: 'sprintf' output 12 bytes into a destination of size 1
> 8 | sprintf(s, "%d", INT_MIN);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
上下前次1-新書関写板覧索設栞歴
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ
ぬこの手 ぬこTOP 0.049s