Main.cc: In function ‘int main()’:
Main.cc:10:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d",n);
^
Main.cc:12:35: error: expected ‘)’ before ‘;’ token
pi= pi+((pow(-1,i)/((2*i)+1));
^
Main.cc:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",n);
~~~~~^~~~~~~~