fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Newtype {
  5. int a;
  6.  
  7. public:
  8. int getName() {
  9. return a;
  10. }
  11. };
  12.  
  13. int main() {
  14. Newtype obj;
  15. cout << obj.getName();
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty