結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2018-11-28 17:25:10 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 102 bytes |
| 記録 | |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 28,492 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:18:49 |
| 合計ジャッジ時間 | 1,710 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 9 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:1:29: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1 | char*p,*q,s[99];main(){for(p=gets(s);*p;p+=1+printf((q=strstr(p,"treeone"))?*q=0,"%sforest":"%s",p));}
| ^
main.c:1:46: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | char*p,*q,s[99];main(){for(p=gets(s);*p;p+=1+printf((q=strstr(p,"treeone"))?*q=0,"%sforest":"%s",p));}
| ^~~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | char*p,*q,s[99];main(){for(p=gets(s);*p;p+=1+printf((q=strstr(p,"treeone"))?*q=0,"%sforest":"%s",p));}
main.c:1:56: warning: incompatible implicit declaration of built-in function ‘strstr’ [-Wbuiltin-declaration-mismatch]
1 | char*p,*q,s[99];main(){for(p=gets(s);*p;p+=1+printf((q=strstr(p,"treeone"))?*q=0,"%sforest":"%s",p));}
| ^~~~~~
main.c:1:1: note: include ‘<string.h>’ or provide a declaration of ‘strstr’
+++ |+#include <string.h>
1 | char*p,*q,s[99];main(){for(p=gets(s);*p;p+=1+printf((q=strstr(p,"treeone"))?*q=0,"%sforest":"%s",p));}
/usr/bin/ld: /tmp/ccD1weCn.o: in function `main':
main.c:(.text.startup+0x18): 警告: the `gets' function is dangerous and should not be used.
ソースコード
char*p,*q,s[99];main(){for(p=gets(s);*p;p+=1+printf((q=strstr(p,"treeone"))?*q=0,"%sforest":"%s",p));}
testestest