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