結果
問題 | No.105 arcの六角ボルト |
ユーザー | 👑 testestest |
提出日時 | 2016-02-01 08:01:34 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 145 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-06-26 03:09:28 |
合計ジャッジ時間 | 640 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
コンパイルメッセージ
main.c:1:12: warning: data definition has no type or storage class 1 | double x,y;i;main(){for(gets(&x);i=~scanf("%lf%lf",&x,&y);printf("%.9f\n",x)){for(x=atan2(y,x)/atan(1)*45+180;x>51;x-=60);for(;i++<3;gets(&y));}} | ^ main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:14: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | double x,y;i;main(){for(gets(&x);i=~scanf("%lf%lf",&x,&y);printf("%.9f\n",x)){for(x=atan2(y,x)/atan(1)*45+180;x>51;x-=60);for(;i++<3;gets(&y));}} | ^~~~ main.c: In function ‘main’: main.c:1:25: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 1 | double x,y;i;main(){for(gets(&x);i=~scanf("%lf%lf",&x,&y);printf("%.9f\n",x)){for(x=atan2(y,x)/atan(1)*45+180;x>51;x-=60);for(;i++<3;gets(&y));}} | ^~~~ main.c:1:37: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | double x,y;i;main(){for(gets(&x);i=~scanf("%lf%lf",&x,&y);printf("%.9f\n",x)){for(x=atan2(y,x)/atan(1)*45+180;x>51;x-=60);for(;i++<3;gets(&y));}} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | double x,y;i;main(){for(gets(&x);i=~scanf("%lf%lf",&x,&y);printf("%.9f\n",x)){for(x=atan2(y,x)/atan(1)*45+180;x>51;x-=60);for(;i++<3;gets(&y));}} main.c:1:37: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | double x,y;i;main(){for(gets(&x);i=~scanf("%lf%lf",&x,&y);printf("%.9f\n",x)){for(x=atan2(y,x)/atan(1)*45+180;x>51;x-=60);for(;i++<3;gets(&y));}} | ^~~~~ main.c:1:37: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:59: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | dou
ソースコード
double x,y;i;main(){for(gets(&x);i=~scanf("%lf%lf",&x,&y);printf("%.9f\n",x)){for(x=atan2(y,x)/atan(1)*45+180;x>51;x-=60);for(;i++<3;gets(&y));}}