Record Detail

Compile Error

/in/ex3.c: In function 'main':
/in/ex3.c:123:23: error: passing argument 1 of 'generate_random_walk' from incompatible pointer type [-Werror=incompatible-pointer-types]
  generate_random_walk(walk);
                       ^~~~
/in/ex3.c:5:6: note: expected 'char (*)[10]' but argument is of type 'char (*)[15]'
 void generate_random_walk(char walk[10][10])
      ^~~~~~~~~~~~~~~~~~~~
/in/ex3.c:124:12: error: passing argument 1 of 'print_map' from incompatible pointer type [-Werror=incompatible-pointer-types]
  print_map(walk);
            ^~~~
/in/ex3.c:106:6: note: expected 'char (*)[10]' but argument is of type 'char (*)[15]'
 void print_map(char walk[10][10])
      ^~~~~~~~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 4
Language
C
Submit At
2020-07-07 00:00:38
Judged At
2020-07-07 00:00:38
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes