prog.c:10:15: error: expected identifier before ‘=’ token
enum { Freq400=4, Freq200=8, Freq100=16, Freq50=32, Freq40=40, Freq32=50};
^
prog.c: In function ‘main’:
prog.c:14:9: warning: implicit declaration of function ‘rand’ [-Wimplicit-function-declaration]
int x= rand();
^~~~
prog.c:16:7: warning: comparison between pointer and integer
if(x >= Freq400 && x <= Freq32 )
^~
prog.c:16:23: warning: comparison of constant ‘50’ with boolean expression is always true [-Wbool-compare]
if(x >= Freq400 && x <= Freq32 )
^~
prog.c:16:7: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
if(x >= Freq400 && x <= Freq32 )
~~^~~~~~~~~~~~~~~
prog.c:16:2: error: label ‘x’ used but not defined
if(x >= Freq400 && x <= Freq32 )
^~