prog.cpp: In constructor ‘Rem::Rem(Rem::Nums, std::__cxx11::string, int)’:
prog.cpp:16:7: error: ‘enum Rem::Nums’ is not a non-static data member of ‘Rem’
: Nums(var),string m_name(name),m_val(val)
^~~~
prog.cpp:16:17: error: class ‘Rem’ does not have any field named ‘string’
: Nums(var),string m_name(name),m_val(val)
^~~~~~
prog.cpp:16:24: error: expected ‘(’ before ‘m_name’
: Nums(var),string m_name(name),m_val(val)
^~~~~~
prog.cpp:16:24: error: expected ‘{’ before ‘m_name’
prog.cpp: In member function ‘std::__cxx11::string Rem::get(Rem::Nums)’:
prog.cpp:22:22: error: could not convert ‘NUM_ONE’ from ‘Rem::Nums’ to ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’
case NUM_ONE: return NUM_ONE;
^~~~~~~
prog.cpp:23:22: error: ‘NUM’ was not declared in this scope
case NUM_TWO: return NUM,_TWO;
^~~
prog.cpp:23:26: error: ‘_TWO’ was not declared in this scope
case NUM_TWO: return NUM,_TWO;
^~~~
prog.cpp: In member function ‘void Rem::print()’:
prog.cpp:28:12: error: ‘var’ was not declared in this scope
std::cout<<var<<" " <<m=name<<m_val;
^~~
prog.cpp:28:23: error: ‘m’ was not declared in this scope
std::cout<<var<<" " <<m=name<<m_val;
^
prog.cpp:28:25: error: ‘name’ was not declared in this scope
std::cout<<var<<" " <<m=name<<m_val;
^~~~