Main.cc: In function ‘void nhap(int*, int)’:
Main.cc:11:12: error: a function-definition is not allowed here before ‘{’ token
int main() {
^
Main.cc:31:1: error: expected ‘}’ at end of input
}
^
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]);
~~~~~^~~~~~~~~~~~