0_0_36516280_6135.cpp: In function 'int main()': 0_0_36516280_6135.cpp:114:11: error: 'ans' was not declared in this scope cout << ans % mod << endl; ^