0_0_36383290_14439.cpp:10:11: error: redefinition of 'const int maxn' const int maxn = 1e6 + 10; ^ 0_0_36383290_14439.cpp:7:11: note: 'const int maxn' previously defined here const int maxn = 2e6 + 10; ^