結果
問題 | No.1934 Four Fruits |
ユーザー | kotatsugame |
提出日時 | 2021-12-20 06:33:39 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 54 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 26,636 KB |
実行使用メモリ | 4,500 KB |
最終ジャッジ日時 | 2023-09-20 06:40:44 |
合計ジャッジ時間 | 685 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
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;);printf("%c\n",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;);printf("%c\n",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;);printf("%c\n",s^-11);} main.c:1:33: 警告: 関数 ‘printf’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | main(s){for(;s^=getchar(),s>0;);printf("%c\n",s^-11);} | ^~~~~~ main.c:1:33: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:33: 警告: 組み込み関数 ‘printf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch] main.c:1:33: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
main(s){for(;s^=getchar(),s>0;);printf("%c\n",s^-11);}