Main.cc: In function ‘int main()’:
Main.cc:15:37: error: expected primary-expression before ‘)’ token
scanf("%d %d %d %d",&N,&X,&Y,&Z,);
^
Main.cc:16:10: error: ‘a’ was not declared in this scope
nhap(a,N);
^
Main.cc: In function ‘void nhap(int*, int)’:
Main.cc:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~