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