Record Detail

Compile Error

/in/calc.cpp:188:50: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
              (input[0] < '0' || input[0] > '9') && input[0] != '-') {
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/in/calc.cpp:188:50: note: place parentheses around the '&&' expression to silence this warning
              (input[0] < '0' || input[0] > '9') && input[0] != '-') {
                                                 ^
              (                                                    )
1 error generated.
/in/Compile/Makefile:44: recipe for target 'buildCalc' failed
make: *** [buildCalc] Error 1

Information

Submit By
Type
Submission
Homework
Project5
Language
C++
Submit At
2024-04-29 22:32:19
Judged At
2024-04-29 22:32:19
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes