結果

問題 No.9000 Hello World! (テスト用)
ユーザー t_ito1982
提出日時 2015-02-11 21:54:01
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 148 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 20,864 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 21:16:21
合計ジャッジ時間 639 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int (*)[10]’ [-Wformat=]
    8 |         scanf("%d",&i);
      |                ~^  ~~
      |                 |  |
      |                 |  int (*)[10]
      |                 int *
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%d",&i);
      |         ^~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(void)
{
	int i[10];
	scanf("%d",&i);
	printf("Hello World!\n");
	
	return 0;
}
0