結果

問題 No.9000 Hello World! (テスト用)
ユーザー krotonkroton
提出日時 2014-12-23 22:33:49
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 631 ms
コンパイル使用メモリ 22,012 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-09-02 21:59:47
合計ジャッジ時間 1,032 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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