Main.cc: In function ‘void Output(int*, int)’:
Main.cc:10:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d", a[i]);
~~~~^
Main.cc: In function ‘int Max(int*, int)’:
Main.cc:17:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(a[i] > max)
~~~~~^~~~~
Main.cc: In function ‘int Min(int*, int)’:
Main.cc:28:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(a[i] < min)
~~~~~^~~~~
Main.cc: In function ‘void Scanning(int*, int)’:
Main.cc:40:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(Min == a[i])
^
Main.cc:37:18: warning: unused variable ‘s’ [-Wunused-variable]
unsigned int s = 0;
^
Main.cc: In function ‘int main()’:
Main.cc:53:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < n; i++)
~~^~~
Main.cc: In function ‘void Output(int*, int)’:
Main.cc:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", a[i]);
~~~~~^~~~~~~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:51:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%u", &n);
~~~~~^~~~~~~~~~
Main.cc:55:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%u", &a[i]);
~~~~~^~~~~~~~~~~~~