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