why am I getting error Genre genre; part. It says ‘Genre’ does not name a type
Can somebody explain?
// The structure of the Song
typedef struct song
{
int id_playlist;
char *artist;
Genre genre;
double duration;
char *name;
struct song *next;
} Song;
// Enumeration for song genre
typedef enum
{
ROCK = 0,
RAP,
POP,
METAL
} Genre;
Song *New_song(char *name, char *artist, double duration, Genre genre);
void Print_song(Song *song);