Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing header <cstdint> #1045

Merged
merged 1 commit into from
Nov 8, 2023
Merged

fix: add missing header <cstdint> #1045

merged 1 commit into from
Nov 8, 2023

Conversation

Tiphereth-A
Copy link
Contributor

resolve #1044

@Tiphereth-A
Copy link
Contributor Author

BTW I got CE when compiling /graph/vertex_add_range_contour_sum_on_tree/sol/correct.cpp

cc @suisen-cp via #827

Error message
In file included from C:/msys64/ucrt64/include/c++/13.2.0/array:43,
                 from [CENSORED]\library-checker-problems\graph\vertex_add_range_contour_sum_on_tree\sol\correct.cpp:1:
In static member function 'static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const long long int; _Up = long long int; bool _IsMove = false]',
    inlined from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const long long int*; _OI = long long int*]' at C:/msys64/ucrt64/include/c++/13.2.0/bits/stl_algobase.h:506:30,
    inlined from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const long long int*; _OI = long long int*]' at C:/msys64/ucrt64/include/c++/13.2.0/bits/stl_algobase.h:533:42,
    inlined from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator<const long long int*, vector<long long int> >; _OI = __gnu_cxx::__normal_iterator<long long int*, vector<long long int> >]' at C:/msys64/ucrt64/include/c++/13.2.0/bits/stl_algobase.h:540:31,
    inlined from '_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<const long long int*, vector<long long int> >; _OI = __gnu_cxx::__normal_iterator<long long int*, vector<long long int> >]' at C:/msys64/ucrt64/include/c++/13.2.0/bits/stl_algobase.h:633:7,
    inlined from 'SegmentTree<T, op, e>::SegmentTree(const std::vector<_Tp>&) [with T = long long int; T (* op)(T, T) = op; T (* e)() = e]' at [CENSORED]\library-checker-problems\graph\vertex_add_range_contour_sum_on_tree\sol\correct.cpp:19:18,
    inlined from 'PointSetRangeContourSumOnTree<T, op, e>::Node::Node(const std::vector<std::vector<int> >&, const std::vector<signed char>&, const std::vector<int>&, bool, std::vector<std::vector<PointSetRangeContourSumOnTree<T, op, e>::AuxData> >&, const std::vector<_Tp>&, int) [with T = long long int; T (* op)(T, T) = op; T (* e)() = e]' at [CENSORED]\library-checker-problems\graph\vertex_add_range_contour_sum_on_tree\sol\correct.cpp:83:20:
C:/msys64/ucrt64/include/c++/13.2.0/bits/stl_algobase.h:437:30: error: 'void* __builtin_memcpy(void*, const void*, long long unsigned int)' forming offset [17179869176, 34359738367] is out of the bounds [0, 17179869176] [-Werror=array-bounds=]
  437 |             __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
      |             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus.exe: all warnings being treated as errors
GCC version
$ g++ -v
Using built-in specs.
COLLECT_GCC=C:\msys64\ucrt64\bin\g++.exe
COLLECT_LTO_WRAPPER=C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-13.2.0/configure --prefix=/ucrt64 --with-local-prefix=/ucrt64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/ucrt64/include --libexecdir=/ucrt64/lib --enable-bootstrap --enable-checking=release --with-arch=nocona --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++,jit --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts --enable-libstdcxx-time --disable-libstdcxx-pch --enable-lto --enable-libgomp --disable-libssp --disable-multilib --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/ucrt64 --with-mpfr=/ucrt64 --with-mpc=/ucrt64 --with-isl=/ucrt64 --with-pkgversion='Rev2, Built by MSYS2 project' --with-bugurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --disable-libstdcxx-debug --with-boot-ldflags=-static-libstdc++ --with-stage1-ldflags=-static-libstdc++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Rev2, Built by MSYS2 project)

@maspypy
Copy link
Collaborator

maspypy commented Nov 2, 2023

環境構築みたいなことはよくわからないので自分は @yosupo06 任せのつもりです。
今後も問題を増やすことを考えると、github 上のテストで検出できるようにするべきな気がしています。

@yosupo06 yosupo06 merged commit 99487e3 into yosupo06:master Nov 8, 2023
@Tiphereth-A Tiphereth-A deleted the fix-header branch November 8, 2023 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(C++)cstdintヘッダーの追加
4 participants