fork download
  1. #include <iostream>
  2.  
  3. struct ROBOTS {
  4. std::string name;
  5. int speed;
  6. bool talk;
  7. };
  8.  
  9.  
  10. int main() {
  11.  
  12. ROBOTS robot1;
  13. robot1.name = "Lex";
  14. robot1.speed = 10;
  15. robot1.talk = 1;
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty