/in/foo.cc: In function 'int Moveright(int)':
/in/foo.cc:8:16: error: invalid types 'int[int]' for array subscript
int tmp=a[n-1];
^
/in/foo.cc:10:9: error: invalid types 'int[int]' for array subscript
a[i+1]=a[i];
^
/in/foo.cc:10:14: error: invalid types 'int[int]' for array subscript
a[i+1]=a[i];
^
/in/foo.cc:11:6: error: invalid types 'int[int]' for array subscript
a[0]=tmp;
^
/in/foo.cc:13:2: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:21:2: error: expected ';' before 'for'
for(int i=0;i<n;i++)
^~~
/in/foo.cc:21:14: error: 'i' was not declared in this scope
for(int i=0;i<n;i++)
^