Main.c:2:12: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
void A(int &n){
^
Main.c: In function ‘main’:
Main.c:42:2: warning: implicit declaration of function ‘A’ [-Wimplicit-function-declaration]
A(n);
^
Main.c: In function ‘B’:
Main.c:12:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^~~~~~~~~~~~~~~~~
Main.c: In function ‘maxmin’:
Main.c:39:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^