結果
| 問題 | No.350 d=vt |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-30 14:54:44 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 169 bytes |
| 記録 | |
| コンパイル時間 | 2,165 ms |
| コンパイル使用メモリ | 191,464 KB |
| 最終ジャッジ日時 | 2025-01-07 10:06:35 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:7:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
7 | scanf("0.%d%d", v, t);
| ~^ ~
| | |
| int* int
main.cpp:7:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
7 | scanf("0.%d%d", v, t);
| ~^ ~
| | |
| int* int
main.cpp:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("0.%d%d", v, t);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:7:10: warning: ‘v’ is used uninitialized [-Wuninitialized]
7 | scanf("0.%d%d", v, t);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:6:9: note: ‘v’ was declared here
6 | int v, t;
| ^
main.cpp:7:10: warning: ‘t’ is used uninitialized [-Wuninitialized]
7 | scanf("0.%d%d", v, t);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:6:12: note: ‘t’ was declared here
6 | int v, t;
| ^
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int v, t;
scanf("0.%d%d", v, t);
cout << v*t/10000 << endl;
return 0;
}