/in/foo.cc: In function 'void Input()':
/in/foo.cc:26:9: error: 'n' was not declared in this scope
cin >> n;
^
/in/foo.cc:29:8: error: 'a' was not declared in this scope
cin>>a[i];
^
/in/foo.cc: In function 'void Output()':
/in/foo.cc:36:22: error: 'n' was not declared in this scope
for (int i = 0; i < n; i++)
^
/in/foo.cc:38:11: error: 'a' was not declared in this scope
cout << a[i] << " ";
^
/in/foo.cc: In function 'void MoveLeft()':
/in/foo.cc:47:15: error: 'n' was not declared in this scope
for (int i = n - 1; i > k - 1; i--)
^
/in/foo.cc:49:10: error: 'a' was not declared in this scope
temp = a[n-1];
^