C++ dog years segmentation fault

When i try to execute the programme i get a segmentation error.

It is likely that there’s some internal error going on behind the compiler. try restarting your browser then compile your code again.