Main.cc: In function 'int main()':
Main.cc:9:2: error: expected ',' or ';' before 'for'
for(int i=1;i<=n;i++)
^
Main.cc:9:14: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++)
^
Main.cc:32:2: error: 'retrun' was not declared in this scope
retrun 0;
^
Main.cc:7:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^