Record Detail

Compile Error

/in/ex3.c: In function 'main':
/in/ex3.c:61:42: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
         if (walk[i][j] == 'Z' ||!(i >= 1 && walk[i - 1][j] == '.'|| i <= 8 && walk[i + 1][j] == '.'|| j >= 1 && walk[i][j - 1] == '.'|| j <= 8 && walk[i][j + 1] == '.')) {
                                   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/ex3.c:61:110: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
         if (walk[i][j] == 'Z' ||!(i >= 1 && walk[i - 1][j] == '.'|| i <= 8 && walk[i + 1][j] == '.'|| j >= 1 && walk[i][j - 1] == '.'|| j <= 8 && walk[i][j + 1] == '.')) {
                                                                                                       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/ex3.c:61:144: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
         if (walk[i][j] == 'Z' ||!(i >= 1 && walk[i - 1][j] == '.'|| i <= 8 && walk[i + 1][j] == '.'|| j >= 1 && walk[i][j - 1] == '.'|| j <= 8 && walk[i][j + 1] == '.')) {
                                                                                                                                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 4
Language
C
Submit At
2020-07-06 21:01:31
Judged At
2020-07-06 21:01:31
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes