fork download
  1. #include <iostream>
  2.  
  3.  
  4. class A{
  5. int y;
  6. short h;
  7. void show(){}
  8. };
  9.  
  10.  
  11.  
  12. int main(){
  13. //D d;
  14. //d.show();
  15. std::cout<<sizeof(A);
  16. return 0;
  17. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
8