Main.cc: In function 'int main()':
Main.cc:16:5: error: 'cum' was not declared in this scope
y[cum] = yu;
^
Main.cc:20:14: error: 'cum' was not declared in this scope
for(int i = cum-1;i >= 0;i--){
^
Main.cc:21:14: error: invalid types 'int[int]' for array subscript
cout << z[i];
^