結果
| 問題 | No.1009 面積の求め方 |
| コンテスト | |
| ユーザー |
sho_00
|
| 提出日時 | 2020-04-07 15:13:23 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 28,484 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:21:55 |
| 合計ジャッジ時間 | 716 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
コンパイルメッセージ
main.c: In function ‘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:2:1: note: include ‘<math.h>’ or provide a declaration of ‘pow’
1 | #include<stdio.h>
+++ |+#include <math.h>
2 | int main()
main.c:5:2: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lf",&a);
| ^~~~~~~~~~~~~~~
main.c:6:2: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%lf",&b);
| ^~~~~~~~~~~~~~~
ソースコード
#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;
}
sho_00