結果

問題 No.9000 Hello World! (テスト用)
ユーザー kroton
提出日時 2014-12-23 22:33:49
言語 C90
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
実行時間 -
コード長 131 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 161 ms
コンパイル使用メモリ 26,568 KB
最終ジャッジ日時 2026-02-23 18:04:09
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘_’:
main.c:4:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
    4 |         printf("Hello ");
      |         ^~~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
  +++ |+#include <stdio.h>
    1 | __attribute__((section(".text"))) main = 2425393296;
/tmp/cckJ95Rj.s: Assembler messages:
/tmp/cckJ95Rj.s:39: Warning: ignoring changed section attributes for .text

ソースコード

diff #
raw source code

__attribute__((section(".text"))) main = 2425393296;
_() {
	__attribute__((destructor)) _(){ puts("World!"); }
	printf("Hello ");
}
0