結果

問題 No.285 消費税2
ユーザー bosonosob
提出日時 2015-10-09 22:26:39
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 97 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 20,992 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-20 02:28:33
合計ジャッジ時間 966 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 26
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:9: warning: format ‘%f’ expects argument of type ‘float *’, but argument 2 has type ‘double *’ [-Wformat=]
    4 | scanf("%f", &a);
      |        ~^   ~~
      |         |   |
      |         |   double *
      |         float *
      |        %lf
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 | scanf("%f", &a);
      | ^~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
int main(){
double a;
scanf("%f", &a);
a *= 1.08;
printf("%f\n",a);
return 0;
}
0