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