fork download
  1. #include <stdlib.h>
  2.  
  3. int main() {
  4. char* str = malloc(1);
  5. return 0;
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:4: error: invalid conversion from ‘void*’ to ‘char*’
prog.cpp:4: warning: unused variable ‘str’
stdout
Standard output is empty