0_0_33525534_7470.cpp: In function 'int main()': 0_0_33525534_7470.cpp:39:13: error: 'n' was not declared in this scope for(int i=n-1;~i;i--) ans=(ans*1122+pos[i])%mod; ^