結果
| 問題 | No.212 素数サイコロと合成数サイコロ (2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-08-21 20:38:48 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 99 bytes |
| 記録 | |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 28,228 KB |
| 最終ジャッジ日時 | 2026-02-23 19:21:56 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:3:1: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
3 | scanf("%f%f",&a,&b);
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | main(){
main.c:4:1: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
4 | printf("%.9f\n",powf(41.0/6,a)*powf(49.0/6,b));
| ^~~~~~
main.c:4:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:4:12: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=]
4 | printf("%.9f\n",powf(41.0/6,a)*powf(49.0/6,b));
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| double int
| %.9d
ソースコード
main(){
float a,b;
scanf("%f%f",&a,&b);
printf("%.9f\n",powf(41.0/6,a)*powf(49.0/6,b));
return 0;
}