/in/foo.cc: In function 'void Output(int*, int)':
/in/foo.cc:5:5: error: declaration of 'int n' shadows a parameter
int n,i;
^
/in/foo.cc:7:12: error: found ':' in nested-name-specifier, expected '::'
for(i=0;i<n:i++)
^
/in/foo.cc:7:11: error: 'n' is not a class, namespace, or enumeration
for(i=0;i<n:i++)
^
/in/foo.cc:7:16: error: expected ';' before ')' token
for(i=0;i<n:i++)
^
/in/foo.cc:10:8: error: return-statement with a value, in function returning 'void' [-fpermissive]
return 0;
^
/in/foo.cc: In function 'void Output(int*, int)':
/in/foo.cc:12:6: error: redefinition of 'void Output(int*, int)'
void Output(int a[],int n)
^~~~~~
/in/foo.cc:3:6: note: 'void Output(int*, int)' previously defined here
void Output(int a[],int n)
^~~~~~