fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct S{
  5. int a;
  6. int b;
  7. S() : a(0), b(1) {}
  8. void m()
  9. {
  10. std::cout << "hello from S::m()\n";
  11. }
  12. };
  13. int main() {
  14. S s;
  15. s.m();
  16. // your code goes here
  17. return 0;
  18. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
hello from S::m()