結果

問題 No.725 木は明らかに森である
ユーザー testestesttestestest
提出日時 2018-11-28 17:21:31
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 106 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 26,908 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-09 05:49:32
合計ジャッジ時間 901 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 0 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 0 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 0 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:18: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int]
    1 | char*p,*q,s[220];main(){for(p=gets(s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));}
      |                  ^~~~
main.c: 関数 ‘main’ 内:
main.c:1:31: 警告: 関数 ‘gets’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    1 | char*p,*q,s[220];main(){for(p=gets(s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));}
      |                               ^~~~
main.c:1:30: 警告: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
    1 | char*p,*q,s[220];main(){for(p=gets(s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));}
      |                              ^
main.c:1:47: 警告: 関数 ‘printf’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    1 | char*p,*q,s[220];main(){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,s[220];main(){for(p=gets(s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));}
main.c:1:47: 警告: 組み込み関数 ‘printf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch]
    1 | char*p,*q,s[220];main(){for(p=gets(s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));}
      |                                               ^~~~~~
main.c:1:47: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:66: 警告: 関数 ‘strstr’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    1 | char*p,*q,s[220];main(){for(p=gets(s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));}
      |                                                                

ソースコード

diff #

char*p,*q,s[220];main(){for(p=gets(s);*p;p+=1+printf("%s%s",p,(q=strstr(p,"treeone"))?*q=0,"forest":""));}
0