Record Detail

Compile Error

/in/ex3.c: In function 'generate_random_walk':
/in/ex3.c:41:12: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
     return a;
            ^
/in/ex3.c:41:12: error: function returns address of local variable [-Werror=return-local-addr]
/in/ex3.c:9:9: error: variable 'dead_end' set but not used [-Werror=unused-but-set-variable]
     int dead_end=0;
         ^~~~~~~~
/in/ex3.c: At top level:
/in/ex3.c:43:6: error: return type of 'main' is not 'int' [-Werror=main]
 void main(){
      ^~~~
/in/ex3.c: In function 'main':
/in/ex3.c:49:20: error: subscripted value is neither array nor pointer nor vector
             if(a[i][j]==0){
                    ^
/in/ex3.c:52:35: error: subscripted value is neither array nor pointer nor vector
             walk[i][j]=(char)(a[i][j]+64);
                                   ^
cc1: all warnings being treated as errors

Information

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