prog.c:3:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
typedef struct{
^~~~~~~
prog.c:9:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
typedef struct{
^~~~~~~
prog.c:17:3: error: ‘James’ undeclared here (not in a function)
{James, Jemes_detail}, //James is defined somewhere like #define James 1
^~~~~
prog.c:17:3: warning: excess elements in struct initializer
prog.c:17:3: note: (near initialization for ‘arr1[0]’)
prog.c:17:10: error: ‘Jemes_detail’ undeclared here (not in a function)
{James, Jemes_detail}, //James is defined somewhere like #define James 1
^~~~~~~~~~~~
prog.c:17:10: warning: excess elements in struct initializer
prog.c:17:10: note: (near initialization for ‘arr1[0]’)
prog.c:21:1: error: expected ‘,’ or ‘;’ before ‘DETAIL_T’
DETAIL_T Jemes_detail[]={
^~~~~~~~
prog.c: In function ‘PLAY_BASKETBALL’:
prog.c:35:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.c: In function ‘RIDE_SCOOTER’:
prog.c:38:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.c: In function ‘GO_SWIMMING’:
prog.c:41:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^