結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
👑 ![]() |
提出日時 | 2016-12-04 07:45:05 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 99 bytes |
コンパイル時間 | 131 ms |
コンパイル使用メモリ | 19,712 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-27 19:38:47 |
合計ジャッジ時間 | 2,825 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 13 |
コンパイルメッセージ
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,0)>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,0)>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,0)>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/ccINTFtB.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,0)>12345|*t|(*s==48&&s[1]) n;char*t,s[];main(){n=!puts(f|f?"NG":"OK");}