Main.cc: In function ‘int main()’:
Main.cc:27:2: error: expected ‘;’ before ‘n’
n=strlen(s);
^
Main.cc: In function ‘void nhapN(int&)’:
Main.cc:15:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
Main.cc: In function ‘void nhapMang(int*, int)’:
Main.cc:20:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&s[i]);
~~~~~^~~~~~~~~~~~