Record Detail

Compile Error

/in/ex3.c: In function 'generate_random_walk':
/in/ex3.c:53:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
             if(walk[position.x+1][position.y]=='.'&&position.x%10!=9){
               ^
/in/ex3.c:57:9: note: here
         case 1:
         ^~~~
/in/ex3.c:58:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
             if(walk[position.x-1][position.y]=='.'&&position.x%10!=1){
               ^
/in/ex3.c:62:9: note: here
         case 2:
         ^~~~
/in/ex3.c:63:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
              if(walk[position.x][position.y-1]=='.'&&position.y%10!=1){
                ^
/in/ex3.c:67:9: note: here
         case 3:
         ^~~~
/in/ex3.c:44:16: error: iteration 25 invokes undefined behavior [-Werror=aggressive-loop-optimizations]
         flag[j]=(char)(j+65);
         ~~~~~~~^~~~~~~~~~~~~
/in/ex3.c:43:5: note: within this loop
     for(int j=0;j<26;j++){
     ^~~
cc1: all warnings being treated as errors

Information

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