/in/call.cpp:28:26: error: decomposition declarations are a C++17 extension [-Werror,-Wc++17-extensions]
for (const auto& [status, queue] :this->call_queues) {
^~~~~~~~~~~~~~~
/in/call.cpp:31:17: error: 'this' argument to member function 'pop_front' has type 'std::tuple_element<1, const std::pair<const std::__cxx11::basic_string<char>, std::deque<Call, std::allocator<Call> > > >::type' (aka 'const std::deque<Call, std::allocator<Call> >'), but function is not marked const
queue.pop_front();
^~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_deque.h:1578:7: note: 'pop_front' declared here
pop_front() _GLIBCXX_NOEXCEPT
^
/in/call.cpp:63:10: error: no member named 'vector' in namespace 'std'
std::vector<Call> calls;
~~~~~^
/in/call.cpp:63:17: error: 'Call' does not refer to a value
std::vector<Call> calls;
^
/in/call.cpp:5:8: note: declared here
struct Call {
^
/in/call.cpp:63:23: error: use of undeclared identifier 'calls'; did you mean 'calloc'?
std::vector<Call> calls;
^~~~~
calloc
/usr/include/stdlib.h:541:14: note: 'calloc' declared here
extern void *calloc (size_t __nmemb, size_t __size)
^
/in/call.cpp:69:9: error: use of undeclared identifier 'calls'
calls.push_back(Call{timestamp, name, status, duration});
^
/in/call.cpp:73:29: error: use of undeclared identifier 'calls'; did you mean 'call'?
for (const Call& call : calls) {
^~~~~
call
/in/call.cpp:73:22: note: 'call' declared here
for (const Call& call : calls) {
^
/in/call.cpp:73:27: error: invalid range expression of type 'const Call'; no viable 'begin' function available
for (const Call& call : calls) {
^ ~~~~~
/in/call.cpp:81:25: error: 'call_queues' is a private member of 'CallCenter'
if (call_center.call_queues["platinum"].empty() &&
^
/in/call.cpp:16:55: note: declared private here
std::unordered_map<std::string, std::deque<Call>> call_queues;
^
/in/call.cpp:82:25: error: 'call_queues' is a private member of 'CallCenter'
call_center.call_queues["gold"].empty() &&
^
/in/call.cpp:16:55: note: declared private here
std::unordered_map<std::string, std::deque<Call>> call_queues;
^
/in/call.cpp:83:25: error: 'call_queues' is a private member of 'CallCenter'
call_center.call_queues["silver"].empty() &&
^
/in/call.cpp:16:55: note: declared private here
std::unordered_map<std::string, std::deque<Call>> call_queues;
^
/in/call.cpp:84:25: error: 'call_queues' is a private member of 'CallCenter'
call_center.call_queues["regular"].empty() &&
^
/in/call.cpp:16:55: note: declared private here
std::unordered_map<std::string, std::deque<Call>> call_queues;
^
/in/call.cpp:85:26: error: 'agent_busy' is a private member of 'CallCenter'
!call_center.agent_busy) {
^
/in/call.cpp:14:10: note: declared private here
bool agent_busy;
^
13 errors generated.
/in/Compile/Makefile:39: recipe for target 'buildCall' failed
make: *** [buildCall] Error 1