結果
| 問題 |
No.858 わり算
|
| コンテスト | |
| ユーザー |
toto
|
| 提出日時 | 2025-04-01 11:24:36 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 102 bytes |
| コンパイル時間 | 656 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-04-01 11:24:38 |
| 合計ジャッジ時間 | 1,495 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:18: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=]
5 | scanf("%lf%lf",&n,&m);
| ~~^ ~~
| | |
| | long double*
| double*
| %Lf
main.cpp:5:21: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘long double*’ [-Wformat=]
5 | scanf("%lf%lf",&n,&m);
| ~~^ ~~
| | |
| | long double*
| double*
| %Lf
main.cpp:7:21: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘long double’ [-Wformat=]
7 | printf("%.50f",n / m);
| ~~~~^ ~~~~~
| | |
| | long double
| double
| %.50Lf
main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lf%lf",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
long double n, m;
scanf("%lf%lf",&n,&m);
printf("%.50f",n / m);
}
toto