結果
問題 | No.810 割った余りの個数 |
ユーザー | CleyL |
提出日時 | 2019-07-07 03:42:18 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 120 bytes |
コンパイル時間 | 536 ms |
コンパイル使用メモリ | 66,900 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-04-10 04:05:40 |
合計ジャッジ時間 | 1,644 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:6:18: warning: 'b' is used uninitialized [-Wuninitialized] 6 | cout << min(b-a+1,c) << endl; | ~^~ main.cpp:5:11: note: 'b' was declared here 5 | int a,b,c; | ^ main.cpp:6:18: warning: 'a' is used uninitialized [-Wuninitialized] 6 | cout << min(b-a+1,c) << endl; | ~^~ main.cpp:5:9: note: 'a' was declared here 5 | int a,b,c; | ^ In file included from /home/linuxbrew/.linuxbrew/Cellar/gcc/13.2.0/include/c++/13/string:51, from /home/linuxbrew/.linuxbrew/Cellar/gcc/13.2.0/include/c++/13/bits/locale_classes.h:40, from /home/linuxbrew/.linuxbrew/Cellar/gcc/13.2.0/include/c++/13/bits/ios_base.h:41, from /home/linuxbrew/.linuxbrew/Cellar/gcc/13.2.0/include/c++/13/ios:44, from /home/linuxbrew/.linuxbrew/Cellar/gcc/13.2.0/include/c++/13/ostream:40, from /home/linuxbrew/.linuxbrew/Cellar/gcc/13.2.0/include/c++/13/iostream:41, 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:16: /home/linuxbrew/.linuxbrew/Cellar/gcc/13.2.0/include/c++/13/bits/stl_algobase.h:238:7: warning: 'c' is used uninitialized [-Wuninitialized] 238 | if (__b < __a) | ^~ main.cpp: In function 'int main()': main.cpp:5:13: note: 'c' was declared here 5 | int a,b,c; | ^
ソースコード
#include <iostream> #include <cmath> using namespace std; int main(){ int a,b,c; cout << min(b-a+1,c) << endl; }