結果
| 問題 | No.9000 Hello World! (テスト用) |
| ユーザー |
t_ito1982
|
| 提出日時 | 2015-02-11 21:50:06 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 137 bytes |
| 記録 | |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 27,848 KB |
| 最終ジャッジ日時 | 2026-02-23 18:06:47 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void)
{
int i[10];
scanf("%d",&i);
printf("Hello World!\n");
}
t_ito1982