fork download
  1. #include <iostream>
  2.  
  3. struct A {
  4. static int f() { return 42; }
  5.  
  6. // unused
  7. static int g() { return 0; }
  8. };
  9.  
  10. // comment
  11.  
  12. int main() {
  13. std::cout << A::f() << std::endl;
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 16048KB
stdin
Standard input is empty
stdout
42