Record Detail

Compile Error

/in/l8.cpp: In function 'int main()':
/in/l8.cpp:30:85: error: expected ')' before '{' token
    if ((operators.top()=='+'||operators.top()=='-')&&(q[order]=='*'||q[order]=='/') {
                                                                                     ^
/in/l8.cpp:30:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if ((operators.top()=='+'||operators.top()=='-')&&(q[order]=='*'||q[order]=='/') {
    ^~
/in/l8.cpp:34:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if ((operators.top()=='*'||operators.top()=='/')&&(q[order]=='+'||q[order]=='-') {
     ^~
/in/l8.cpp:34:86: error: expected ')' before '{' token
     if ((operators.top()=='*'||operators.top()=='/')&&(q[order]=='+'||q[order]=='-') {
                                                                                      ^
/in/l8.cpp:41:1: error: expected primary-expression before '}' token
 }
 ^
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Lab 8
Language
C++
Submit At
2018-07-31 00:30:25
Judged At
2018-07-31 01:51:49
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes