0_0_34239354_2312.cpp: In function 'int main()': 0_0_34239354_2312.cpp:16:14: error: 'sn' was not declared in this scope ans1=sn[n-1]-sn[1]+1-(n-1); ^