結果
| 問題 |
No.835 ジュース
|
| コンテスト | |
| ユーザー |
zGb6E2aZRz6qwu9
|
| 提出日時 | 2019-06-20 15:41:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 149 bytes |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 24,448 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-17 17:55:08 |
| 合計ジャッジ時間 | 842 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:4:14: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=]
4 | scanf("%lf",&a);
| ~~^ ~~
| | |
| | long double*
| double*
| %Lf
main.cpp:6:15: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
6 | printf("%ld\n",ans);
| ~~^ ~~~
| | |
| | long long int
| long int
| %lld
main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%lf",&a);
| ~~~~~^~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void){
long double M,a;
scanf("%lf",&a);
long long int ans=a*1.5;
printf("%ld\n",ans);
return 0;
}
zGb6E2aZRz6qwu9