結果

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

テストケース

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

ソースコード

diff #

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