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