prog.c: In function ‘main’:
prog.c:7:1: error: ‘cout’ undeclared (first use in this function)
cout<< The result is <<c
^~~~
prog.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
prog.c:7:8: error: ‘The’ undeclared (first use in this function)
cout<< The result is <<c
^~~
prog.c:7:11: error: expected ‘;’ before ‘result’
cout<< The result is <<c
^~~~~~~
;
prog.c:10:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
srand(time(NULL));
^~~~
prog.c:14:27: error: ‘inc’ undeclared (first use in this function); did you mean ‘int’?
if (rand()%100 < (BASE + inc))
^~~
int
prog.c:16:3: error: ‘cnt’ undeclared (first use in this function); did you mean ‘int’?
cnt++;
^~~
int