Record Detail

Compile Error

/in/ex2.c: In function 'main':
/in/ex2.c:6:16: error: implicit declaration of function 'malloc' [-Werror=implicit-function-declaration]
     s1=(char *)malloc(sizeof(char)*20);
                ^~~~~~
/in/ex2.c:6:16: error: incompatible implicit declaration of built-in function 'malloc' [-Werror]
/in/ex2.c:6:16: note: include '<stdlib.h>' or provide a declaration of 'malloc'
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 5
Language
C
Submit At
2020-07-15 23:54:07
Judged At
2020-07-15 23:54:07
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes