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