Record Detail

Compile Error

/in/ex3.c: In function 'generate_random_walk':
/in/ex3.c:62:32: error: unused parameter 'walk' [-Werror=unused-parameter]
 void generate_random_walk(char walk[10][10])
                                ^~~~
/in/ex3.c: In function 'print_map':
/in/ex3.c:65:21: error: unused parameter 'walk' [-Werror=unused-parameter]
 void print_map(char walk[10][10])
                     ^~~~
/in/ex3.c: In function 'main':
/in/ex3.c:9:24: error: iteration 11 invokes undefined behavior [-Werror=aggressive-loop-optimizations]
             walk[i][j] = 'a';
             ~~~~~~~~~~~^~~~~
/in/ex3.c:8:9: note: within this loop
         for (int j = 1; j <= 12; j++)
         ^~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 4
Language
C
Submit At
2020-07-06 23:49:26
Judged At
2020-07-06 23:49:26
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes