cpp_project_in_github
cpp_project_in_github copied to clipboard
[ISSUE] 大きい数値を入力したら、std::invalid_argument例外が発生する
Describe the issue
-
9999999999999 + 1を入力したら、std::invalid_argument例外が発生した
Expected behavior
999999999999 + 1 = 10000000000000 が出力されるはずである
Environment
- Hardware: PC
- CPU: Intel Core i7-11700 2.5GHz
- GPU: NVIDIA GeForce RTX 3060 Ti
- OS: 5.10.16.3-microsoft-standard-WSL2 (WSL2 in Windows11)
- Commit id: 5bc66fe62f329349070cfd0553cbd78b37a8a8e0 , alpha version
To Reproduce
Steps to reproduce the behavior:
- アプリ (main.exe) を実行する
-
>9999999999999 + 1を入力する - 結果を確認する
Build Command
mkdir -p build && cd build
cmake ..
make
Log
iwatake@iwatake_desktop:/mnt/c/iwatake/devel/devel/cpp_project_in_github/build$ ./main
>9999999999999 + 1
terminate called after throwing an instance of 'std::invalid_argument'
what(): Unsupported op: [
Aborted
Screenshots
None
Additional context
-
999999999 + 1 = 1000000000はOK