結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー | 👑 testestest |
提出日時 | 2016-12-04 07:39:44 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 100 bytes |
コンパイル時間 | 202 ms |
コンパイル使用メモリ | 19,584 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-27 19:38:43 |
合計ジャッジ時間 | 3,205 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
コンパイルメッセージ
main.c:2:1: warning: data definition has no type or storage class 2 | n;char*t,s[];main(){n=!puts(f|f?"NG":"OK");} | ^ main.c:2:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] main.c:2:14: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | n;char*t,s[];main(){n=!puts(f|f?"NG":"OK");} | ^~~~ main.c: In function ‘main’: main.c:2:24: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] 2 | n;char*t,s[];main(){n=!puts(f|f?"NG":"OK");} | ^~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’ +++ |+#include <stdio.h> 1 | #define f strtol(gets(s),&t,10)>12345|*t|(*s==48&&s[1]) main.c:1:11: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration] 1 | #define f strtol(gets(s),&t,10)>12345|*t|(*s==48&&s[1]) | ^~~~~~ main.c:2:29: note: in expansion of macro ‘f’ 2 | n;char*t,s[];main(){n=!puts(f|f?"NG":"OK");} | ^ main.c:1:18: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 1 | #define f strtol(gets(s),&t,10)>12345|*t|(*s==48&&s[1]) | ^~~~ main.c:2:29: note: in expansion of macro ‘f’ 2 | n;char*t,s[];main(){n=!puts(f|f?"NG":"OK");} | ^ main.c: At top level: main.c:2:10: warning: array ‘s’ assumed to have one element 2 | n;char*t,s[];main(){n=!puts(f|f?"NG":"OK");} | ^ /usr/bin/ld: /tmp/cctKpDTA.o: in function `main': main.c:(.text.startup+0x1c): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#define f strtol(gets(s),&t,10)>12345|*t|(*s==48&&s[1]) n;char*t,s[];main(){n=!puts(f|f?"NG":"OK");}