結果
| 問題 |
No.9000 Hello World! (テスト用)
|
| ユーザー |
t_ito1982
|
| 提出日時 | 2015-02-11 21:50:06 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 137 bytes |
| コンパイル時間 | 726 ms |
| コンパイル使用メモリ | 20,992 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-23 18:53:17 |
| 合計ジャッジ時間 | 946 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / 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