結果
| 問題 |
No.858 わり算
|
| コンテスト | |
| ユーザー |
toto
|
| 提出日時 | 2025-04-01 11:24:58 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 102 bytes |
| コンパイル時間 | 637 ms |
| コンパイル使用メモリ | 27,904 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-04-01 11:25:00 |
| 合計ジャッジ時間 | 1,255 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
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