#include #include using namespace std; int main() { vector inventory; inventory.push_back("sword"); inventory.push_back("shield"); inventory.push_back("boots"); inventory.pop_back(); string front = inventory.front(); cout << "First element in inventory: " << front << "\n"; string back = inventory.back(); cout << "Last element in inventory: " << back << "\n"; cout << "\n"; for (int i = 0; i < inventory.size(); i++) { cout << i << ": " << inventory[i] << "\n"; } }