Main.cc: In function ‘int main()’:
Main.cc:13:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;i++)
^~~
Main.cc:15:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
printf("%d",)
^~~~~~
Main.cc:15:25: error: expected primary-expression before ‘)’ token
printf("%d",)
^
Main.cc:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~