結果
| 問題 |
No.8080 A0xxxxx
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-07 23:10:31 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 164 bytes |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 27,264 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-23 14:21:10 |
| 合計ジャッジ時間 | 864 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 1 |
コンパイルメッセージ
main.c: In function 'main':
main.c:5:48: warning: excess elements in array initializer
5 | int ans[10] = {0,7,11,13,17,19,23,29,47,59,61};
| ^~
main.c:5:48: note: (near initialization for 'ans')
ソースコード
#include <stdio.h>
int main(void)
{
int ans[10] = {0,7,11,13,17,19,23,29,47,59,61};
int x;
scanf("%d", &x);
printf("%d\n", ans[x]);
return 0;
}