Record Detail

Compile Error

/in/cleaner.cpp:39:43: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
            if(bigstream[i]=='%' && (i>=1 && bigstream[i-1]!='\\' || i==0) && deleting==0){
                                     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ~~
/in/cleaner.cpp:39:43: note: place parentheses around the '&&' expression to silence this warning
            if(bigstream[i]=='%' && (i>=1 && bigstream[i-1]!='\\' || i==0) && deleting==0){
                                          ^
                                     (                           )
/in/cleaner.cpp:53:48: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
            else if(bigstream[i]=='}' && (i>=1 && bigstream[i-1]!='\\' || i==0)){
                                          ~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ~~
/in/cleaner.cpp:53:48: note: place parentheses around the '&&' expression to silence this warning
            else if(bigstream[i]=='}' && (i>=1 && bigstream[i-1]!='\\' || i==0)){
                                               ^
                                          (                           )
2 errors generated.
/in/Compile/Makefile:44: recipe for target 'buildCleaner' failed
make: *** [buildCleaner] Error 1

Information

Submit By
Type
Submission
Homework
Project Five: List, Stack, and Queue
Language
C++
Submit At
2020-12-13 21:41:31
Judged At
2020-12-13 21:41:31
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes