Record Detail

Compile Error

/in/call.cpp:7:18: error: use of undeclared identifier 'Customer'
  priority_queue<Customer> platinumQueue;
                 ^
/in/call.cpp:8:18: error: use of undeclared identifier 'Customer'
  priority_queue<Customer> goldQueue;
                 ^
/in/call.cpp:9:18: error: use of undeclared identifier 'Customer'
  priority_queue<Customer> silverQueue;
                 ^
/in/call.cpp:10:18: error: use of undeclared identifier 'Customer'
  priority_queue<Customer> regularQueue;
                 ^
/in/call.cpp:25:5: error: unknown type name 'Customer'
    Customer customer(timestamp, name, status, duration);
    ^
/in/call.cpp:28:7: error: use of undeclared identifier 'platinumQueue'
      platinumQueue.push(customer);
      ^
/in/call.cpp:30:7: error: use of undeclared identifier 'goldQueue'
      goldQueue.push(customer);
      ^
/in/call.cpp:32:7: error: use of undeclared identifier 'silverQueue'
      silverQueue.push(customer);
      ^
/in/call.cpp:34:7: error: use of undeclared identifier 'regularQueue'
      regularQueue.push(customer);
      ^
/in/call.cpp:41:3: error: unknown type name 'Customer'
  Customer currentCall(0, "", "", 0);
  ^
/in/call.cpp:44:11: error: use of undeclared identifier 'platinumQueue'
  while (!platinumQueue.empty() || !goldQueue.empty() || !silverQueue.empty() || !regularQueue.empty() || agentBusy) {
          ^
/in/call.cpp:44:37: error: use of undeclared identifier 'goldQueue'
  while (!platinumQueue.empty() || !goldQueue.empty() || !silverQueue.empty() || !regularQueue.empty() || agentBusy) {
                                    ^
/in/call.cpp:44:59: error: use of undeclared identifier 'silverQueue'
  while (!platinumQueue.empty() || !goldQueue.empty() || !silverQueue.empty() || !regularQueue.empty() || agentBusy) {
                                                          ^
/in/call.cpp:44:83: error: use of undeclared identifier 'regularQueue'
  while (!platinumQueue.empty() || !goldQueue.empty() || !silverQueue.empty() || !regularQueue.empty() || agentBusy) {
                                                                                  ^
/in/call.cpp:50:13: error: use of undeclared identifier 'platinumQueue'
    while (!platinumQueue.empty() && platinumQueue.top().timestamp == tick) {
            ^
/in/call.cpp:50:38: error: use of undeclared identifier 'platinumQueue'
    while (!platinumQueue.empty() && platinumQueue.top().timestamp == tick) {
                                     ^
/in/call.cpp:52:31: error: use of undeclared identifier 'platinumQueue'
      cout << "Call from " << platinumQueue.top().name << " a platinum member" << endl;
                              ^
/in/call.cpp:53:7: error: use of undeclared identifier 'platinumQueue'
      platinumQueue.pop();
      ^
/in/call.cpp:55:13: error: use of undeclared identifier 'goldQueue'
    while (!goldQueue.empty() && goldQueue.top().timestamp == tick) {
            ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/in/Compile/Makefile:39: recipe for target 'buildCall' failed
make: *** [buildCall] Error 1

Information

Submit By
Type
Submission
Homework
Project 5
Language
C++
Submit At
2022-12-17 23:13:46
Judged At
2022-12-17 23:13:46
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes