結果

問題 No.1009 面積の求め方
ユーザー sho_00sho_00
提出日時 2020-04-07 15:13:23
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 27,520 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-07 13:32:38
合計ジャッジ時間 1,261 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function 'main':
main.c:7:13: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
    7 |  double ans=pow((b-a),3)/6;
      |             ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | int main()
main.c:7:13: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
    7 |  double ans=pow((b-a),3)/6;
      |             ^~~
main.c:7:13: note: include '<math.h>' or provide a declaration of 'pow'

ソースコード

diff #

#include<stdio.h>
int main()
{
 double a,b;
 scanf("%lf",&a);
 scanf("%lf",&b);
 double ans=pow((b-a),3)/6;
 printf("%lf",ans);
 return 0;
}
0