結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー testestesttestestest
提出日時 2015-08-09 21:36:17
言語 C90
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 117 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 23,080 KB
実行使用メモリ 5,540 KB
最終ジャッジ日時 2023-09-25 07:39:26
合計ジャッジ時間 1,600 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 printf("%d",a[atoi(gets(k))]);
 ^~~~~~
main.c:5:1: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:5:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:1:
+#include <stdio.h>
 int main(){
main.c:5:1:
 printf("%d",a[atoi(gets(k))]);
 ^~~~~~
main.c:5:15: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
 printf("%d",a[atoi(gets(k))]);
               ^~~~
main.c:5:20: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 printf("%d",a[atoi(gets(k))]);
                    ^~~~
/tmp/cckroapx.o: In function `main':
main.c:(.text.startup+0x38): warning: the `gets' function is dangerous and should not be used.

ソースコード

diff #

int main(){
int a[1000000]={},i;
char k[10];
for(i=0;i<1000000;i++)a[i]=i;
printf("%d",a[atoi(gets(k))]);
return 0;
}
0