結果

問題 No.2621 Fee Schedule
ユーザー rotti_coder
提出日時 2024-02-09 23:23:43
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 116 bytes
コンパイル時間 1,958 ms
コンパイル使用メモリ 189,868 KB
最終ジャッジ日時 2025-02-19 04:14:19
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:16: warning: ‘c’ is used uninitialized [-Wuninitialized]
    6 |   cout << min(c*a,b) << endl;
      |               ~^~
main.cpp:5:11: note: ‘c’ was declared here
    5 |   int a,b,c;
      |           ^
main.cpp:6:16: warning: ‘a’ is used uninitialized [-Wuninitialized]
    6 |   cout << min(c*a,b) << endl;
      |               ~^~
main.cpp:5:7: note: ‘a’ was declared here
    5 |   int a,b,c;
      |       ^
In file included from /usr/include/c++/13/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
                 from main.cpp:1:
In function ‘constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]’,
    inlined from ‘int main()’ at main.cpp:6:14:
/usr/include/c++/13/bits/stl_algobase.h:238:7: warning: ‘b’ is used uninitialized [-Wuninitialized]
  238 |       if (__b < __a)
      |       ^~
main.cpp: In function ‘int main()’:
main.cpp:5:9: note: ‘b’ was declared here
    5 |   int a,b,c;
      |         ^

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  cout << min(c*a,b) << endl;
  return 0;
}
0