Main.cc: In function ‘int main()’:
Main.cc:41:13: error: invalid operands of types ‘const char [4]’ and ‘int’ to binary ‘operator&’
scanf("%d "&n);
~~~~~^~
Main.cc:43:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" ,&a[i]);
~~~~~^~~~~~~~~~~~~