fork download
  1. #include "stdlib.h"
  2. #include "stdio.h"
  3.  
  4. typedef struct album_ {} album;
  5.  
  6. album *pharse_album(FILE *album_file,int *number_of_albums){
  7.  
  8. album *all_albums_p = (album *)malloc(sizeof(album)*number_of_album);
  9. return (all_albums_p);
  10. }
  11.  
  12. main (){
  13.  
  14. album *all_tracks_ptr;
  15. all_tracks_ptr = pharse_album(album_file,number_of_albums);
  16.  
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘pharse_album’:
prog.c:8: error: ‘number_of_album’ undeclared (first use in this function)
prog.c:8: error: (Each undeclared identifier is reported only once
prog.c:8: error: for each function it appears in.)
prog.c: At top level:
prog.c:12: warning: return type defaults to ‘int’
prog.c: In function ‘main’:
prog.c:15: error: ‘album_file’ undeclared (first use in this function)
prog.c:15: error: ‘number_of_albums’ undeclared (first use in this function)
stdout
Standard output is empty