結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
nxteru
|
| 提出日時 | 2017-04-03 21:26:47 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 163 bytes |
| コンパイル時間 | 1,875 ms |
| コンパイル使用メモリ | 27,136 KB |
| 実行使用メモリ | 40,016 KB |
| 最終ジャッジ日時 | 2024-07-17 00:52:46 |
| 合計ジャッジ時間 | 6,529 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 5 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | i;main(){
| ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: warning: return type defaults to 'int' [-Wimplicit-int]
1 | i;main(){
| ^~~~
main.c: In function 'main':
main.c:4:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
4 | printf("%03d",i);
| ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | i;main(){
main.c:4:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
4 | printf("%03d",i);
| ^~~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:9: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
5 | fflush(0);
| ^~~~~~
main.c:6:9: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
6 | gets(s);
| ^~~~
/usr/bin/ld: /tmp/cc2xfbHs.o: in function `main':
main.c:(.text.startup+0x50): 警告: the `gets' function is dangerous and should not be used.
ソースコード
i;main(){
char s[9];
for(i=0;i<1000;i++){
printf("%03d",i);
fflush(0);
gets(s);
if(s[0]=='l')
break;
}
}
nxteru