Compile Error

/in/calc.cpp:191:32: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
        if ((input[0]<48||input[0]>57)&&(input[0]!=45)||(input[0]==45)&&(str_size==1)) num_flag=0;
            ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/in/calc.cpp:191:32: note: place parentheses around the '&&' expression to silence this warning
        if ((input[0]<48||input[0]>57)&&(input[0]!=45)||(input[0]==45)&&(str_size==1)) num_flag=0;
                                      ^
            (                                         )
/in/calc.cpp:191:64: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
        if ((input[0]<48||input[0]>57)&&(input[0]!=45)||(input[0]==45)&&(str_size==1)) num_flag=0;
                                                      ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/in/calc.cpp:191:64: note: place parentheses around the '&&' expression to silence this warning
        if ((input[0]<48||input[0]>57)&&(input[0]!=45)||(input[0]==45)&&(str_size==1)) num_flag=0;
                                                                      ^
                                                        (                            )
2 errors generated.
/in/Compile/Makefile:44: recipe for target 'buildCalc' failed
make: *** [buildCalc] Error 1

Information

Submit By
Type
Submission
Homework
Project Five: List Stack and Queue
Language
C++
Submit At
2019-07-31 11:53:12
Judged At
2019-07-31 11:53:12
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes