I'm new and I really can't understand the meaning of "not declared in scope" error. I tried declaring these as functions and also by using "" to show a function but it did not compile and run. Here are the errors:
In function 'int main()':
[Error] 'random' was not declared in this scope
[Error] 'sound' was not declared in this scope
[Error] 'delay' was not declared in this scope
[Error] 'nosound' was not declared in this scope
[Error] 'BLINK' was not declared in this scope
[Error] 'textattr' was not declared in this scope
#include<stdio.h>
#include<iostream>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>
using namespace std;
int main ()
{
int count=50;
while(count--)
{
sound(90*random(10));
delay(100);
nosound();
textattr(random("16")+'a'+BLINK);
cprintf("KSHITIJ");
}
}