Mã chấm: 95306
Main.cc:10:2: error: stray ‘#’ in program }#include ^ Main.cc:10:3: error: ‘include’ does not name a type }#include ^~~~~~~ Main.cc: In function ‘void xuatM(int*, int, int)’: Main.cc:26:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘int’ [-Wformat=] printf("%s\n",a[i]); ~~~~^ Main.cc: In function ‘void chuanHoa(char*)’: Main.cc:43:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] a[n-1]=NULL; ^~~~ Main.cc:52:18: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] a[i]=NULL; ^~~~ Main.cc:64:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] a[n-1]=NULL; ^~~~ Main.cc: In function ‘int main()’: Main.cc:71:5: error: redefinition of ‘int main()’ int main() ^~~~ Main.cc:6:5: note: ‘int main()’ previously defined here int main() { ^~~~ Main.cc:76:2: error: ‘nhapM’ was not declared in this scope nhapM(a,n); ^~~~~ Main.cc:74:8: warning: unused variable ‘i’ [-Wunused-variable] int n,i; ^ Main.cc:75:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ~~~~~^~~~~~~~~