結果

問題 No.9000 Hello World! (テスト用)
ユーザー TeaJyasminTeaJyasmin
提出日時 2017-07-20 18:58:50
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 72 bytes
コンパイル時間 964 ms
コンパイル使用メモリ 25,552 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-26 16:13:19
合計ジャッジ時間 655 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:2:1: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: 関数 ‘main’ 内:
main.c:5:2: 警告: assignment to ‘int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
    5 | a="Hello World!";
      |  ^
main.c:8:8: 警告: 1 番目の ‘printf’ の引数へ渡すときに整数からキャスト無しにポインタを作成しています [-Wint-conversion]
    8 | printf(a);
      |        ^
      |        |
      |        int
次のファイルから読み込み:  main.c:1:
/usr/include/stdio.h:332:43: 備考: expected ‘const char * restrict’ but argument is of type ‘int’
  332 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~

ソースコード

diff #

#include <stdio.h>
main()
{
    int a;
a="Hello World!";


printf(a);
}
0