fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class A {
  5. static int a;
  6. public:
  7.  
  8. int get() {
  9. return a;
  10. }
  11. };
  12.  
  13. int A::a = 0;
  14.  
  15. int main() {
  16. A a;
  17. int b = a.get();
  18. return 0;
  19. }
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty