結果
| 問題 | No.2621 Fee Schedule |
| コンテスト | |
| ユーザー |
rotti_coder
|
| 提出日時 | 2024-02-09 23:23:43 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 116 bytes |
| 記録 | |
| コンパイル時間 | 1,171 ms |
| コンパイル使用メモリ | 207,760 KB |
| 実行使用メモリ | 8,460 KB |
| 最終ジャッジ日時 | 2026-07-03 14:50:34 |
| 合計ジャッジ時間 | 2,046 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/algorithm:62,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/x86_64-pc-linux-gnu/bits/stdc++.h:53,
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:
/home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/stl_algobase.h:239:7: warning: 'b' is used uninitialized [-Wuninitialized]
239 | if (__b < __a)
| ^~
main.cpp: In function 'int main()':
main.cpp:5:9: note: 'b' was declared here
5 | int a,b,c;
| ^
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cout << min(c*a,b) << endl;
return 0;
}
rotti_coder