0_0_28823401_31496.cpp: In function 'int main()': 0_0_28823401_31496.cpp:99:9: error: 'vec' was not declared in this scope cout<<vec.back()<<endl; ^