結果
問題 | No.105 arcの六角ボルト |
ユーザー | 👑 testestest |
提出日時 | 2015-08-14 14:33:17 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 144 bytes |
コンパイル時間 | 95 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-07-18 09:22:18 |
合計ジャッジ時間 | 631 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
コンパイルメッセージ
main.c:1:14: warning: data definition has no type or storage class 1 | double t,u,s;i;main(n){ | ^ main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:16: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | double t,u,s;i;main(n){ | ^~~~ main.c: In function ‘main’: main.c:1:16: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int] main.c:2:5: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 2 | for(scanf("%d",&n);n--;printf("%.9lf\n",acos(s)*57.2957795))for(s=i=0;i++<6;s=t>s&u>=-1e-12?t:s)scanf("%lf%lf",&t,&u); | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | double t,u,s;i;main(n){ main.c:2:5: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 2 | for(scanf("%d",&n);n--;printf("%.9lf\n",acos(s)*57.2957795))for(s=i=0;i++<6;s=t>s&u>=-1e-12?t:s)scanf("%lf%lf",&t,&u); | ^~~~~ main.c:2:5: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:2:24: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 2 | for(scanf("%d",&n);n--;printf("%.9lf\n",acos(s)*57.2957795))for(s=i=0;i++<6;s=t>s&u>=-1e-12?t:s)scanf("%lf%lf",&t,&u); | ^~~~~~ main.c:2:24: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:2:24: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] main.c:2:24: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:2:41: warning: implicit declaration of function ‘acos’ [-Wimplicit-function-declaration] 2 | for(scanf("%d",&n);n--;printf("%.9lf\n",acos(s)*57.2957795))for(s=i=0;i++<6;s=t>s&u>=-1e-12?t:s)scanf("%lf%lf",&t,&u); |
ソースコード
double t,u,s;i;main(n){ for(scanf("%d",&n);n--;printf("%.9lf\n",acos(s)*57.2957795))for(s=i=0;i++<6;s=t>s&u>=-1e-12?t:s)scanf("%lf%lf",&t,&u); }