結果

問題 No.9000 Hello World! (テスト用)
ユーザー krotonkroton
提出日時 2014-12-23 22:34:52
言語 C90
(gcc 11.4.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 118 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 19,072 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-20 04:22:12
合計ジャッジ時間 475 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:35: warning: type defaults to ‘int’ in declaration of ‘main’ [-Wimplicit-int]
    1 | __attribute__((section(".text"))) main = 2425393296;
      |                                   ^~~~
main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | _() {
      | ^
main.c: In function ‘_’:
main.c:3:37: warning: return type defaults to ‘int’ [-Wimplicit-int]
    3 |         __attribute__((destructor)) _(){ puts("Hello World!"); }
      |                                     ^
main.c: In function ‘_’:
main.c:3:42: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
    3 |         __attribute__((destructor)) _(){ puts("Hello World!"); }
      |                                          ^~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
  +++ |+#include <stdio.h>
    1 | __attribute__((section(".text"))) main = 2425393296;
/tmp/ccwgBj3a.s: Assembler messages:
/tmp/ccwgBj3a.s:34: Warning: ignoring changed section attributes for .text

ソースコード

diff #

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