結果
問題 | No.9005 実行時間/使用メモリテスト(テスト用) |
ユーザー | testestest |
提出日時 | 2015-08-09 21:35:35 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 108 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 23,016 KB |
実行使用メモリ | 40,720 KB |
最終ジャッジ日時 | 2023-09-25 07:39:12 |
合計ジャッジ時間 | 3,466 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
コンパイルメッセージ
main.c: In function ‘main’: main.c:4:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] printf("%d",a[atoi(gets(&i))]); ^~~~~~ main.c:4:1: warning: incompatible implicit declaration of built-in function ‘printf’ main.c:4:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:1: +#include <stdio.h> int main(){ main.c:4:1: printf("%d",a[atoi(gets(&i))]); ^~~~~~ main.c:4:15: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] printf("%d",a[atoi(gets(&i))]); ^~~~ main.c:4:20: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] printf("%d",a[atoi(gets(&i))]); ^~~~ /tmp/ccS8cR93.o: In function `main': main.c:(.text.startup+0x40): warning: the `gets' function is dangerous and should not be used.
ソースコード
int main(){ int a[10000000]={},i; for(i=0;i<10000000;i++)a[i]=i; printf("%d",a[atoi(gets(&i))]); return 0; }