Main.cc: In function ‘void DemSo(int, int, int*)’:
Main.cc:29:25: error: expected ‘;’ before ‘}’ token
}
^
Main.cc:31:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return dem;
^~~
Main.cc: In function ‘int main()’:
Main.cc:35:9: warning: unused variable ‘b’ [-Wunused-variable]
int b[MAX];
^
Main.cc: In function ‘void nhapmang(int*, int)’:
Main.cc:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~