結果
問題 |
No.835 ジュース
|
ユーザー |
![]() |
提出日時 | 2019-06-20 15:45:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 189 bytes |
コンパイル時間 | 741 ms |
コンパイル使用メモリ | 66,364 KB |
最終ジャッジ日時 | 2025-01-07 05:01:14 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:14: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] 6 | scanf("%lf",&a); | ~~^ ~~ | | | | | long double* | double* | %Lf main.cpp:8:15: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] 8 | printf("%ld\n",ans); | ~~^ ~~~ | | | | | long long int | long int | %lld main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%lf",&a); | ~~~~~^~~~~~~~~~
ソースコード
#include<stdio.h> #include<iostream> using namespace std; int main(void){ long double M,a; scanf("%lf",&a); long long int ans=a*1.5; printf("%ld\n",ans); return 0; }