Test: unsigned_underflow.cpp unsigned_underflow.cpp:15:9: error: expected unqualified-id before 'return' 15 | return (tail_ - head_ + capacity_) % capacity_; // Correct modular arithmetic | ^~~~~~ unsigned_underflow.cpp:18:6: error: expected ';' after class definition 18 | } | ^ | ; unsigned_underflow.cpp: In constructor 'RingBuffer::RingBuffer(size_t)': unsigned_underflow.cpp:7:35: error: class 'RingBuffer' does not have any field named 'capacity_' 7 | RingBuffer(size_t capacity) : capacity_(capacity), head_(0), tail_(0) {} | ^~~~~~~~~ unsigned_underflow.cpp:7:56: error: class 'RingBuffer' does not have any field named 'head_' 7 | RingBuffer(size_t capacity) : capacity_(capacity), head_(0), tail_(0) {} | ^~~~~ unsigned_underflow.cpp:7:66: error: class 'RingBuffer' does not have any field named 'tail_' 7 | RingBuffer(size_t capacity) : capacity_(capacity), head_(0), tail_(0) {} | ^~~~~ unsigned_underflow.cpp: In member function 'void RingBuffer::push(int)': unsigned_underflow.cpp:10:9: error: 'buffer_' was not declared in this scope 10 | buffer_.push_back(value); | ^~~~~~~ unsigned_underflow.cpp:11:9: error: 'tail_' was not declared in this scope 11 | tail_ = (tail_ + 1) % capacity_; | ^~~~~ unsigned_underflow.cpp:11:31: error: 'capacity_' was not declared in this scope 11 | tail_ = (tail_ + 1) % capacity_; | ^~~~~~~~~ unsigned_underflow.cpp: At global scope: unsigned_underflow.cpp:20:20: error: non-member function 'bool isEmpty()' cannot have cv-qualifier 20 | bool isEmpty() const { | ^~~~~ unsigned_underflow.cpp: In function 'bool isEmpty()': unsigned_underflow.cpp:21:16: error: 'head_' was not declared in this scope 21 | return head_ == tail_; | ^~~~~ unsigned_underflow.cpp:21:25: error: 'tail_' was not declared in this scope 21 | return head_ == tail_; | ^~~~~ unsigned_underflow.cpp: At global scope: unsigned_underflow.cpp:24:1: error: expected unqualified-id before 'private' 24 | private: | ^~~~~~~ unsigned_underflow.cpp:29:1: error: expected declaration before '}' token 29 | }; | ^ unsigned_underflow.cpp: In function 'int main()': unsigned_underflow.cpp:38:42: error: 'class RingBuffer' has no member named 'available' 38 | std::cout << "Available: " << buffer.available() << std::endl; | ^~~~~~~~~ unsigned_underflow.cpp:39:39: error: 'class RingBuffer' has no member named 'isEmpty' 39 | std::cout << "Empty: " << (buffer.isEmpty() ? "yes" : "no") << std::endl; | ^~~~~~~