Record Detail

Compile Error

/in/call.cpp:46:30: error: expected ';' at end of declaration
        bool newcall = 1, isbusy = 0 newline = 1;
                                    ^
                                    ;
/in/call.cpp:50:3: error: use of undeclared identifier 'newline'
                newline = 0;
                ^
/in/call.cpp:84:6: error: use of undeclared identifier 'newline'; did you mean 'getline'?
        if (newline)    cout << endl;
            ^~~~~~~
            getline
/usr/include/x86_64-linux-gnu/bits/stdio.h:115:1: note: 'getline' declared here
getline (char **__lineptr, size_t *__n, FILE *__stream)
^
/in/call.cpp:84:6: error: address of function 'getline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
        if (newline)    cout << endl;
        ~~  ^~~~~~~
/in/call.cpp:84:6: note: prefix with the address-of operator to silence this warning
        if (newline)    cout << endl;
            ^
            &
4 errors generated.
/in/Compile/Makefile:39: recipe for target 'buildCall' failed
make: *** [buildCall] Error 1

Information

Submit By
Type
Submission
Homework
Project Five: List, Stack, and Queue
Language
C++
Submit At
2018-08-05 14:09:51
Judged At
2018-08-05 14:09:54
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes