0_0_31002579_24355.cpp: In function 'int main()': 0_0_31002579_24355.cpp:22:11: error: 'i' was not declared in this scope cout<<v[i]<<endl; ^