結果
問題 | No.400 鏡 |
ユーザー | 👑 testestest |
提出日時 | 2016-07-23 09:58:31 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 61 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 19,712 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 14:46:29 |
合計ジャッジ時間 | 729 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,820 KB |
testcase_01 | AC | 1 ms
6,820 KB |
testcase_02 | AC | 1 ms
6,816 KB |
testcase_03 | AC | 1 ms
6,820 KB |
testcase_04 | AC | 1 ms
6,816 KB |
testcase_05 | AC | 1 ms
6,820 KB |
testcase_06 | AC | 1 ms
6,820 KB |
testcase_07 | AC | 1 ms
6,816 KB |
testcase_08 | AC | 0 ms
6,820 KB |
testcase_09 | AC | 0 ms
6,816 KB |
testcase_10 | AC | 1 ms
6,816 KB |
testcase_11 | AC | 0 ms
6,820 KB |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | f(s){s=getchar();s-10&&f()*putchar(s^2);}main(){f();exit(0);} | ^ main.c: In function ‘f’: main.c:1:1: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int] main.c:1:8: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration] 1 | f(s){s=getchar();s-10&&f()*putchar(s^2);}main(){f();exit(0);} | ^~~~~~~ main.c:1:1: note: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’? +++ |+#include <stdio.h> 1 | f(s){s=getchar();s-10&&f()*putchar(s^2);}main(){f();exit(0);} main.c:1:28: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration] 1 | f(s){s=getchar();s-10&&f()*putchar(s^2);}main(){f();exit(0);} | ^~~~~~~ main.c:1:28: note: include ‘<stdio.h>’ or provide a declaration of ‘putchar’ main.c: At top level: main.c:1:42: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | f(s){s=getchar();s-10&&f()*putchar(s^2);}main(){f();exit(0);} | ^~~~ main.c: In function ‘main’: main.c:1:53: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 1 | f(s){s=getchar();s-10&&f()*putchar(s^2);}main(){f();exit(0);} | ^~~~ main.c:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ +++ |+#include <stdlib.h> 1 | f(s){s=getchar();s-10&&f()*putchar(s^2);}main(){f();exit(0);} main.c:1:53: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 1 | f(s){s=getchar();s-10&&f()*putchar(s^2);}main(){f();exit(0);} | ^~~~ main.c:1:53: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
ソースコード
f(s){s=getchar();s-10&&f()*putchar(s^2);}main(){f();exit(0);}