fork download
  1. #include <iostream>
  2. using namespace std;
  3. struct C {
  4. int i;
  5. C(int i):i(i)
  6. {
  7. }
  8. };
  9. int main() {
  10. C c(5);
  11. std::cout << c.i;
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
5