結果

問題 No.9000 Hello World! (テスト用)
ユーザー TeaJyasmin
提出日時 2017-07-20 18:58:50
言語 C90(gcc12)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 72 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 83 ms
コンパイル使用メモリ 27,972 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2026-03-08 16:12:28
合計ジャッジ時間 1,049 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 /usr/include/stdio.h:970,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:116:32: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
  116 | printf (const char *__restrict __fmt, ...)
      |         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:8:1: warning: format not a string literal and no format arguments [-Wformat-security]
    8 | printf(a);
      | ^~~~~~

ソースコード

diff #
raw source code

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


printf(a);
}
0