結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-07 03:42:18 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 120 bytes |
| 記録 | |
| コンパイル時間 | 333 ms |
| コンパイル使用メモリ | 79,952 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-04-18 15:33:52 |
| 合計ジャッジ時間 | 1,645 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
コンパイルメッセージ
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/15.2.0_1/include/c++/15/string:53,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/locale_classes.h:42,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/ios_base.h:43,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/ios:46,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/ostream.h:43,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/ostream:42,
from /home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/iostream:43,
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/15.2.0_1/include/c++/15/bits/stl_algobase.h:239:7: warning: 'c' is used uninitialized [-Wuninitialized]
239 | 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;
}