fork download
  1. #include <iostream>
  2. using namespace std;
  3. struct Employee
  4. { int id; int age; double salary; };
  5. int main() { Employee Ivan = { 5, 27, 15000.0 };
  6. cout<<Ivan.age;
  7. // your code goes here
  8. return 0;
  9. }
Success #stdin #stdout 0s 5532KB
stdin
Standard input is empty
stdout
27