結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー ciel
提出日時 2015-08-21 20:39:14
言語 C90
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 99 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 20,992 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-18 11:24:37
合計ジャッジ時間 1,614 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | main(){
      | ^~~~
main.c: In function ‘main’:
main.c:3:1: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    3 | scanf("%lf%lf",&a,&b);
      | ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    3 | scanf("%lf%lf",&a,&b);
      | ^~~~~
main.c:3:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:3:10: warning: format ‘%lf’ expects argument of type ‘double *’, but argument 2 has type ‘float *’ [-Wformat=]
    3 | scanf("%lf%lf",&a,&b);
      |        ~~^     ~~
      |          |     |
      |          |     float *
      |          double *
      |        %f
main.c:3:13: warning: format ‘%lf’ expects argument of type ‘double *’, but argument 3 has type ‘float *’ [-Wformat=]
    3 | scanf("%lf%lf",&a,&b);
      |           ~~^     ~~
      |             |     |
      |             |     float *
      |             double *
      |           %f
main.c:4:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
    4 | printf("%.9f\n",pow(41.0/6,a)*pow(49.0/6,b));
      | ^~~~~~
main.c:4:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:4:1: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
main.c:4:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:4:17: warning: implicit declaration of function ‘pow’ [-Wimplicit-function-declaration]
    4 | printf("%.9f\n",pow(41.0/6,a)*pow(49.0/6,b));
      |                 ^~~
main.c:1:1: note: include ‘<math.h>’ or provide a declaration of ‘pow’
  +++ |+#include <math.h>
    1 | main(){

ソースコード

diff #

main(){
float a,b;
scanf("%lf%lf",&a,&b);
printf("%.9f\n",pow(41.0/6,a)*pow(49.0/6,b));
return 0;
}
0