結果
問題 | No.725 木は明らかに森である |
ユーザー | testestest |
提出日時 | 2018-11-28 17:22:13 |
言語 | C (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 101 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 26,920 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-09 05:49:36 |
合計ジャッジ時間 | 2,159 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
コンパイルメッセージ
main.c:1:11: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int] 1 | char*p,*q;main(s){for(p=gets(&s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));} | ^~~~ main.c: 関数 ‘main’ 内: main.c:1:11: 警告: ‘s’ の型をデフォルトの ‘int’ にします [-Wimplicit-int] main.c:1:25: 警告: 関数 ‘gets’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | char*p,*q;main(s){for(p=gets(&s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));} | ^~~~ main.c:1:24: 警告: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 1 | char*p,*q;main(s){for(p=gets(&s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));} | ^ main.c:1:42: 警告: 関数 ‘printf’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | char*p,*q;main(s){for(p=gets(&s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));} | ^~~~~~ main.c:1:1: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +++ |+#include <stdio.h> 1 | char*p,*q;main(s){for(p=gets(&s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));} main.c:1:42: 警告: 組み込み関数 ‘printf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch] 1 | char*p,*q;main(s){for(p=gets(&s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));} | ^~~~~~ main.c:1:42: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:61: 警告: 関数 ‘strstr’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | char*p,*q;main(s){for(p=gets(&s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));} |
ソースコード
char*p,*q;main(s){for(p=gets(&s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));}