Main.c:3:16: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
void NhapN(int &n) {
^
Main.c: In function ‘main’:
Main.c:24:2: warning: implicit declaration of function ‘NhapN’; did you mean ‘NhapSo’? [-Wimplicit-function-declaration]
NhapN(n);
^~~~~
NhapSo
Main.c: In function ‘NhapSo’:
Main.c:9:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &d, &m);
^~~~~~~~~~~~~~~~~~~~~~