結果
| 問題 |
No.9000 Hello World! (テスト用)
|
| ユーザー |
TeaJyasmin
|
| 提出日時 | 2017-07-20 18:58:50 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 72 bytes |
| コンパイル時間 | 447 ms |
| コンパイル使用メモリ | 26,368 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-25 14:57:55 |
| 合計ジャッジ時間 | 1,966 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 4 |
コンパイルメッセージ
main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
2 | main()
| ^~~~
main.c: In function 'main':
main.c:5:2: warning: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
5 | a="Hello World!";
| ^
main.c:8:8: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
8 | printf(a);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
356 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
ソースコード
#include <stdio.h>
main()
{
int a;
a="Hello World!";
printf(a);
}
TeaJyasmin