結果
問題 | No.725 木は明らかに森である |
ユーザー | testestest |
提出日時 | 2018-11-28 17:25:10 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 102 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 26,800 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-09 05:49:38 |
合計ジャッジ時間 | 720 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,376 KB |
testcase_04 | AC | 0 ms
4,380 KB |
testcase_05 | AC | 0 ms
4,380 KB |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,376 KB |
testcase_08 | AC | 0 ms
4,380 KB |
コンパイルメッセージ
main.c:1:17: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int] 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: 関数 ‘main’ 内: main.c:1:30: 警告: 関数 ‘gets’ の暗黙的な宣言です [-Wimplicit-function-declaration] 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:29: 警告: 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: 警告: 関数 ‘printf’ の暗黙的な宣言です [-Wimplicit-function-declaration] 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: 備考: 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:46: 警告: 組み込み関数 ‘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:46: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:56: 警告: 関数 ‘strstr’ の暗黙的な宣言です [-Wimplicit-function-declaration] 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: 備考: include ‘<st
ソースコード
char*p,*q,s[99];main(){for(p=gets(s);*p;p+=1+printf((q=strstr(p,"treeone"))?*q=0,"%sforest":"%s",p));}