prog.cpp:4:7: error: 'size' does not name a type
const size = 50;
^
prog.cpp:11:6: error: 'size' was not declared in this scope
T a[size];
^
prog.cpp: In constructor 'arr<T>::arr()':
prog.cpp:16:13: error: 'size' was not declared in this scope
for(i=0;i<size;i++)
^
prog.cpp:18:4: error: 'a' was not declared in this scope
a[i] = i;
^
prog.cpp: In member function 'void arr<T>::put(T, int)':
prog.cpp:23:3: error: 'a' was not declared in this scope
a[i] = z;
^
prog.cpp: In member function 'T arr<T>::get(int)':
prog.cpp:27:10: error: 'a' was not declared in this scope
return a[i];
^