結果
問題 | No.212 素数サイコロと合成数サイコロ (2) |
ユーザー | ciel |
提出日時 | 2015-08-21 20:39:14 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 99 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 20,992 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-18 11:24:37 |
合計ジャッジ時間 | 1,614 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
コンパイルメッセージ
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(){
ソースコード
main(){ float a,b; scanf("%lf%lf",&a,&b); printf("%.9f\n",pow(41.0/6,a)*pow(49.0/6,b)); return 0; }