結果
問題 |
No.197 手品
|
ユーザー |
👑 ![]() |
提出日時 | 2016-05-19 12:45:57 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 102 bytes |
コンパイル時間 | 413 ms |
コンパイル使用メモリ | 19,328 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-27 13:31:08 |
合計ジャッジ時間 | 1,263 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 16 WA * 27 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | x;main(a,b,s){x=gets(&x)?main(b,s,x):!puts((a-b)%5|(s-48?s-49?0:a%7*b%7==1:a-b)?"SUCCESS":"FAILURE");} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | x;main(a,b,s){x=gets(&x)?main(b,s,x):!puts((a-b)%5|(s-48?s-49?0:a%7*b%7==1:a-b)?"SUCCESS":"FAILURE");} | ^~~~ main.c: In function ‘main’: main.c:1:3: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] main.c:1:3: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit-int] main.c:1:3: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int] main.c:1:17: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 1 | x;main(a,b,s){x=gets(&x)?main(b,s,x):!puts((a-b)%5|(s-48?s-49?0:a%7*b%7==1:a-b)?"SUCCESS":"FAILURE");} | ^~~~ main.c:1:39: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] 1 | x;main(a,b,s){x=gets(&x)?main(b,s,x):!puts((a-b)%5|(s-48?s-49?0:a%7*b%7==1:a-b)?"SUCCESS":"FAILURE");} | ^~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’ +++ |+#include <stdio.h> 1 | x;main(a,b,s){x=gets(&x)?main(b,s,x):!puts((a-b)%5|(s-48?s-49?0:a%7*b%7==1:a-b)?"SUCCESS":"FAILURE");} /usr/bin/ld: /tmp/ccbZ0o2h.o: in function `main': main.c:(.text.startup+0x19): 警告: the `gets' function is dangerous and should not be used.
ソースコード
x;main(a,b,s){x=gets(&x)?main(b,s,x):!puts((a-b)%5|(s-48?s-49?0:a%7*b%7==1:a-b)?"SUCCESS":"FAILURE");}