fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A
  5. {
  6. int foo;
  7. int bar = 7;
  8. float jay = 12.784f;
  9. };
  10.  
  11.  
  12. int main() {
  13. A a{5, 11};
  14. std::cout << a.jay << "\n";
  15. // your code goes here
  16. return 0;
  17. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
12.784