0_0_21370935_6057.cpp:42:5: error: conflicting declaration 'int mod' int mod = 15; ^ 0_0_21370935_6057.cpp:34:11: note: previous declaration as 'const int mod' const int mod = 1e9+7; ^