結果
問題 |
No.512 魔法少女の追いかけっこ
|
ユーザー |
|
提出日時 | 2017-05-05 22:44:01 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 99 bytes |
コンパイル時間 | 227 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 06:01:46 |
合計ジャッジ時間 | 1,721 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 53 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | x,y,f;main(a,b){for(scanf("%d%d%*d%d",&x,&y,&a);~scanf("%d",&b);a=b)f|=b*x<a*y;puts(f?"NO":"YES");} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int] main.c:1:3: warning: type defaults to 'int' in declaration of 'y' [-Wimplicit-int] 1 | x,y,f;main(a,b){for(scanf("%d%d%*d%d",&x,&y,&a);~scanf("%d",&b);a=b)f|=b*x<a*y;puts(f?"NO":"YES");} | ^ main.c:1:5: warning: type defaults to 'int' in declaration of 'f' [-Wimplicit-int] 1 | x,y,f;main(a,b){for(scanf("%d%d%*d%d",&x,&y,&a);~scanf("%d",&b);a=b)f|=b*x<a*y;puts(f?"NO":"YES");} | ^ main.c:1:7: warning: return type defaults to 'int' [-Wimplicit-int] 1 | x,y,f;main(a,b){for(scanf("%d%d%*d%d",&x,&y,&a);~scanf("%d",&b);a=b)f|=b*x<a*y;puts(f?"NO":"YES");} | ^~~~ main.c: In function 'main': main.c:1:7: warning: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:7: warning: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:21: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | x,y,f;main(a,b){for(scanf("%d%d%*d%d",&x,&y,&a);~scanf("%d",&b);a=b)f|=b*x<a*y;puts(f?"NO":"YES");} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | x,y,f;main(a,b){for(scanf("%d%d%*d%d",&x,&y,&a);~scanf("%d",&b);a=b)f|=b*x<a*y;puts(f?"NO":"YES");} main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | x,y,f;main(a,b){for(scanf("%d%d%*d%d",&x,&y,&a);~scanf("%d",&b);a=b)f|=b*x<a*y;puts(f?"NO":"YES");} | ^~~~~ main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:80: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 1 | x,y,f;main(a,b){for(scanf("%d%d%*d%d",&x,&y,&a);~scanf("%d",&b);a=b)f|=b*x<a*y;
ソースコード
x,y,f;main(a,b){for(scanf("%d%d%*d%d",&x,&y,&a);~scanf("%d",&b);a=b)f|=b*x<a*y;puts(f?"NO":"YES");}