結果
| 問題 |
No.9000 Hello World! (テスト用)
|
| ユーザー |
|
| 提出日時 | 2014-12-23 22:33:49 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 131 bytes |
| コンパイル時間 | 320 ms |
| コンパイル使用メモリ | 19,200 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 04:13:56 |
| 合計ジャッジ時間 | 787 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 4 |
コンパイルメッセージ
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("World!"); }
| ^
main.c: In function ‘_’:
main.c:3:42: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
3 | __attribute__((destructor)) _(){ puts("World!"); }
| ^~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
+++ |+#include <stdio.h>
1 | __attribute__((section(".text"))) main = 2425393296;
main.c: In function ‘_’:
main.c:4:9: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
4 | printf("Hello ");
| ^~~~~~
main.c:4:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:4:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
main.c:4:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
/tmp/ccy6siUd.s: Assembler messages:
/tmp/ccy6siUd.s:39: Warning: ignoring changed section attributes for .text
ソースコード
__attribute__((section(".text"))) main = 2425393296;
_() {
__attribute__((destructor)) _(){ puts("World!"); }
printf("Hello ");
}