#include <iostream>
#include <queue>
int main() {
// Step 1: Declare a queue of integers
std::queue<int> myQueue;
// Step 2: Push elements into the queue
myQueue.push(10);
myQueue.push(20);
myQueue.push(30);
// Step 3: Access the front element of the queue
int frontElement = myQueue.front();
// Step 4: Access the back element of the queue
int backElement = myQueue.back();
// Step 5: Get the size of the queue
std::size_t queueSize = myQueue.size();
// Step 6: Check if the queue is empty
bool isEmpty = myQueue.empty();
// Step 7: Pop an element from the front of the queue
myQueue.pop();
// Step 8: Display the elements of the queue
while (!myQueue.empty()) {
std::cout << myQueue.front() << " ";
myQueue.pop();
}
return 0;
}