fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int a;
  7. cin>>a;
  8. if(a<=13){
  9. cout<<"childhood";}
  10. if(14<=a &&a<=24){
  11. cout<<"youth";}
  12. if(25<=a&&a<=59){
  13. cout<<"adulthood";}
  14. if(a>=60){
  15. cout<<"old ages";}
  16. return 0;
  17. }
  18. }
  19. return 0;
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:18:5: error: expected declaration before '}' token
     }
     ^
stdout
Standard output is empty