結果
問題 | No.105 arcの六角ボルト |
ユーザー | 👑 testestest |
提出日時 | 2016-03-18 05:51:09 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 133 bytes |
コンパイル時間 | 298 ms |
コンパイル使用メモリ | 21,248 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-10-01 09:02:17 |
合計ジャッジ時間 | 670 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
コンパイルメッセージ
main.c:1:11: warning: data definition has no type or storage class 1 | float x,y;i;main(){for(gets(&x);i=~scanf("%f%f",&x,&y);printf("%f\n",x))for(x=atan2(y,x)/atan(1)*45+180;i++<3;gets(&y))x>51?x-=60:0;} | ^ main.c:1:11: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:13: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | float x,y;i;main(){for(gets(&x);i=~scanf("%f%f",&x,&y);printf("%f\n",x))for(x=atan2(y,x)/atan(1)*45+180;i++<3;gets(&y))x>51?x-=60:0;} | ^~~~ main.c: In function ‘main’: main.c:1:24: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 1 | float x,y;i;main(){for(gets(&x);i=~scanf("%f%f",&x,&y);printf("%f\n",x))for(x=atan2(y,x)/atan(1)*45+180;i++<3;gets(&y))x>51?x-=60:0;} | ^~~~ main.c:1:36: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | float x,y;i;main(){for(gets(&x);i=~scanf("%f%f",&x,&y);printf("%f\n",x))for(x=atan2(y,x)/atan(1)*45+180;i++<3;gets(&y))x>51?x-=60:0;} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | float x,y;i;main(){for(gets(&x);i=~scanf("%f%f",&x,&y);printf("%f\n",x))for(x=atan2(y,x)/atan(1)*45+180;i++<3;gets(&y))x>51?x-=60:0;} main.c:1:36: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | float x,y;i;main(){for(gets(&x);i=~scanf("%f%f",&x,&y);printf("%f\n",x))for(x=atan2(y,x)/atan(1)*45+180;i++<3;gets(&y))x>51?x-=60:0;} | ^~~~~ main.c:1:36: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:56: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | float x,y;i;main(){for(gets(&x);i=~scanf("%f%f",&x,&y);printf("%f\n",x))for(x=at
ソースコード
float x,y;i;main(){for(gets(&x);i=~scanf("%f%f",&x,&y);printf("%f\n",x))for(x=atan2(y,x)/atan(1)*45+180;i++<3;gets(&y))x>51?x-=60:0;}