fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. class
  4. {
  5.  
  6. public :
  7. int a= 10 , b = 11 ;
  8. } w , e , r ;
  9. int main() {
  10.  
  11. cout << w.a << " " << w.b << endl << e.a << endl << e.b << endl ;
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 4376KB
stdin
Standard input is empty
stdout
10 11
10
11