結果

問題 No.1934 Four Fruits
ユーザー kotatsugamekotatsugame
提出日時 2021-12-20 06:32:52
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 48 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 26,336 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-20 06:40:40
合計ジャッジ時間 891 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int]
    1 | main(s){for(;s^=getchar(),s>0;);putchar(s^-11);}
      | ^~~~
main.c: 関数 ‘main’ 内:
main.c:1:1: 警告: ‘s’ の型をデフォルトの ‘int’ にします [-Wimplicit-int]
main.c:1:17: 警告: 関数 ‘getchar’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    1 | main(s){for(;s^=getchar(),s>0;);putchar(s^-11);}
      |                 ^~~~~~~
main.c:1:1: 備考: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
  +++ |+#include <stdio.h>
    1 | main(s){for(;s^=getchar(),s>0;);putchar(s^-11);}
main.c:1:33: 警告: 関数 ‘putchar’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    1 | main(s){for(;s^=getchar(),s>0;);putchar(s^-11);}
      |                                 ^~~~~~~
main.c:1:33: 備考: include ‘<stdio.h>’ or provide a declaration of ‘putchar’

ソースコード

diff #

main(s){for(;s^=getchar(),s>0;);putchar(s^-11);}
0