Skip to content

Got "Segmentation fault" while using <atcoder/convolution> #135

@danielsun3164

Description

@danielsun3164

My program at https://atcoder.jp/contests/abc214/submissions/30708618 got "Segmentation fault".
gdb shows following:
Program received signal SIGSEGV, Segmentation fault.
atcoder::internal::butterfly<atcoder::static_modint<1000000007, (void*)0>, (void*)0> (a=std::vector of length 2048, capacity 2048 = {...}) at ../../../include/atcoder/convolution.hpp:107
107 rot *= info.rate3[bsf(~(unsigned int)(s))];
My program worked after I changed line 65, as https://atcoder.jp/contests/abc214/submissions/30709044
Am I using in a wrong way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions