結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-10 13:37:26 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 329 bytes |
| 記録 | |
| コンパイル時間 | 523 ms |
| コンパイル使用メモリ | 103,524 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-12 05:25:59 |
| 合計ジャッジ時間 | 1,644 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:21:26: warning: 'R' is used uninitialized [-Wuninitialized]
21 | cout << min(M, R - L + 1);
| ~~^~~
main.cpp:20:16: note: 'R' was declared here
20 | int L, R, M;
| ^
main.cpp:21:26: warning: 'L' is used uninitialized [-Wuninitialized]
21 | cout << min(M, R - L + 1);
| ~~^~~
main.cpp:20:13: note: 'L' was declared here
20 | int L, R, M;
| ^
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:21:13:
/home/linuxbrew/.linuxbrew/Cellar/gcc/15.2.0_1/include/c++/15/bits/stl_algobase.h:239:7: warning: 'M' is used uninitialized [-Wuninitialized]
239 | if (__b < __a)
| ^~
main.cpp: In function 'int main()':
main.cpp:20:19: note: 'M' was declared here
20 | int L, R, M;
| ^
ソースコード
#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>
#include<bitset>
#include <vector>
#include<bitset>
#include <iomanip>
#include <map>
#include <set>
#include <stack>
#include <deque>
#include <climits>
#include <queue>
using namespace std;
int main() {
int L, R, M;
cout << min(M, R - L + 1);
}