Main.cc:6:1: error: ‘oid’ does not name a type; did you mean ‘void’?
oid nh(int a[],int n){
^~~
void
Main.cc: In function ‘int main()’:
Main.cc:22:5: error: ‘nh’ was not declared in this scope
nh(a,n);
^~
Main.cc:22:5: note: suggested alternative: ‘n’
nh(a,n);
^~
n
Main.cc: In function ‘void th(int*, int)’:
Main.cc:14:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&b[e]);
~~~~~^~~~~~~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:21:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&t);
~~~~~^~~~~~~~~~~~~~~