結果
| 問題 |
No.858 わり算
|
| コンテスト | |
| ユーザー |
toto
|
| 提出日時 | 2025-04-01 11:24:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 104 bytes |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 28,160 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-04-01 11:24:14 |
| 合計ジャッジ時間 | 1,516 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:19: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘long double*’ [-Wformat=]
5 | scanf("%lld%lld",&n,&m);
| ~~~^ ~~
| | |
| | long double*
| long long int*
| %Le
main.cpp:5:23: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘long double*’ [-Wformat=]
5 | scanf("%lld%lld",&n,&m);
| ~~~^ ~~
| | |
| | long double*
| long long int*
| %Le
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("%lld%lld",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
long double n, m;
scanf("%lld%lld",&n,&m);
printf("%.50f",n / m);
}
toto