prog.cpp:7:19: error: expected identifier before numeric constant
std::vector<T> s(10);
^
prog.cpp:7:19: error: expected ',' or '...' before numeric constant
prog.cpp: In instantiation of 'T& Myclass<T>::operator[](int) [with T = std::basic_string<char>]':
prog.cpp:20:5: required from here
prog.cpp:15:12: error: invalid use of member function (did you forget the '()' ?)
return s[i];
^