結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
syaro
|
| 提出日時 | 2016-01-19 18:46:05 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 128 bytes |
| コンパイル時間 | 627 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-21 14:25:50 |
| 合計ジャッジ時間 | 4,510 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 20 |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | main(c,D,X){gets(D);double T,p;for(;~scanf("%d%d%lf",&D,&X,&T);puts(p-1>T?"ZETUBOU":"AC"))for(p=c=1;c<D;p/=c++)p*=X+c;return 0;}
| ^~~~
main.c: In function ‘main’:
main.c:1:1: warning: type of ‘c’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:1: warning: type of ‘D’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:1: warning: type of ‘X’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:13: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
1 | main(c,D,X){gets(D);double T,p;for(;~scanf("%d%d%lf",&D,&X,&T);puts(p-1>T?"ZETUBOU":"AC"))for(p=c=1;c<D;p/=c++)p*=X+c;return 0;}
| ^~~~
main.c:1:38: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | main(c,D,X){gets(D);double T,p;for(;~scanf("%d%d%lf",&D,&X,&T);puts(p-1>T?"ZETUBOU":"AC"))for(p=c=1;c<D;p/=c++)p*=X+c;return 0;}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | main(c,D,X){gets(D);double T,p;for(;~scanf("%d%d%lf",&D,&X,&T);puts(p-1>T?"ZETUBOU":"AC"))for(p=c=1;c<D;p/=c++)p*=X+c;return 0;}
main.c:1:38: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | main(c,D,X){gets(D);double T,p;for(;~scanf("%d%d%lf",&D,&X,&T);puts(p-1>T?"ZETUBOU":"AC"))for(p=c=1;c<D;p/=c++)p*=X+c;return 0;}
| ^~~~~
main.c:1:38: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:64: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
1 | main(c,D,X){gets(D);double T,p;for(;~scanf("%d%d%lf",&D,&X,&T);puts(p-1>T?"ZETUBOU":"AC"))for(p=c=1;c<D;p/=c++)p*=X+c;return 0;}
| ^~~~
main.c:1:64: no
ソースコード
main(c,D,X){gets(D);double T,p;for(;~scanf("%d%d%lf",&D,&X,&T);puts(p-1>T?"ZETUBOU":"AC"))for(p=c=1;c<D;p/=c++)p*=X+c;return 0;}
syaro