Main.cc: In function ‘int main()’:
Main.cc:23:10: error: ‘kiemtrachan’ was not declared in this scope
if (kiemtrachan(i) ==0)
^~~~~~~~~~~
Main.cc:12:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
Main.cc:18:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&mangA[i]);
~~~~~^~~~~~~~~~~~~~~~