0_0_21355776_3138.cpp: In function 'int main()': 0_0_21355776_3138.cpp:42:4: error: 'answer' was not declared in this scope answer = (answer * a[i]) % mod; ^