0_0_32901865_3173.cpp: In function 'int main()': 0_0_32901865_3173.cpp:51:26: error: 'p' was not declared in this scope ans += (a[i] % mod)*(p[i] % mod); ^ 0_0_32901865_3173.cpp:56:1: error: expected '}' at end of input } ^