Record Detail

Compile Error

/in/call.cpp:84:29: error: assigning to 'Dlist<customer> *' (aka 'Dlist<Customer> *') from incompatible type 'customer *' (aka 'Customer *')
        case (currentType = serve(platinum, tick)) != nullptr:
                            ^~~~~~~~~~~~~~~~~~~~~
/in/call.cpp:85:24: error: assigning to 'customer *' (aka 'Customer *') from incompatible type 'Dlist<customer> *' (aka 'Dlist<Customer> *')
            c.server = currentType;
                       ^~~~~~~~~~~
/in/call.cpp:90:29: error: assigning to 'Dlist<customer> *' (aka 'Dlist<Customer> *') from incompatible type 'customer *' (aka 'Customer *')
        case (currentType = serve(gold, tick)) != nullptr:
                            ^~~~~~~~~~~~~~~~~
/in/call.cpp:91:24: error: assigning to 'customer *' (aka 'Customer *') from incompatible type 'Dlist<customer> *' (aka 'Dlist<Customer> *')
            c.server = currentType;
                       ^~~~~~~~~~~
/in/call.cpp:96:29: error: assigning to 'Dlist<customer> *' (aka 'Dlist<Customer> *') from incompatible type 'customer *' (aka 'Customer *')
        case (currentType = serve(silver, tick)) != nullptr:
                            ^~~~~~~~~~~~~~~~~~~
/in/call.cpp:97:24: error: assigning to 'customer *' (aka 'Customer *') from incompatible type 'Dlist<customer> *' (aka 'Dlist<Customer> *')
            c.server = currentType;
                       ^~~~~~~~~~~
/in/call.cpp:102:29: error: assigning to 'Dlist<customer> *' (aka 'Dlist<Customer> *') from incompatible type 'customer *' (aka 'Customer *')
        case (currentType = serve(regular, tick)) != nullptr:
                            ^~~~~~~~~~~~~~~~~~~~
/in/call.cpp:103:24: error: assigning to 'customer *' (aka 'Customer *') from incompatible type 'Dlist<customer> *' (aka 'Dlist<Customer> *')
            c.server = currentType;
                       ^~~~~~~~~~~
/in/call.cpp:83:5: error: switch condition has boolean value [-Werror,-Wswitch-bool]
    switch (true) {
    ^       ~~~~
9 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
2023-12-09 17:48:32
Judged At
2023-12-09 17:48:32
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes