prog.c: In function 'option1':
prog.c:51:8: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
temp=head;
^
prog.c:54:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
temp=temp->next;
^
prog.c:57:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
temp->next=(Photo*)malloc(sizeof(Photo));
^
prog.c:58:21: error: dereferencing pointer to incomplete type 'struct photo'
strcpy(temp->next->name,name);
^
prog.c: In function 'main':
prog.c:70:10: warning: implicit declaration of function 'sizeofArray' [-Wimplicit-function-declaration]
sizze=sizeofArray();//gets the size that the array needs to be from the file
^
prog.c:72:7: error: expected ';' before 'PrintArray'
PrintArray(Users,sizze);
^
prog.c:76:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[50]' [-Wformat=]
scanf("%s",&name);
^
prog.c:79:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[50]' [-Wformat=]
scanf("%s",&date);
^
prog.c:82:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[50]' [-Wformat=]
scanf("%s",&description);
^
prog.c:85:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[50]' [-Wformat=]
scanf("%s",&location);
^
prog.c:68:8: warning: unused variable 'option' [-Wunused-variable]
int option,user,sizze;
^