Problem description:
C++: if I create a function that should return an int (or string and probably others) but has no return statement, main is executed in an endless loop
Expected behavior:
Compiler error
Actual behavior:
Endless loop
Steps to reproduce:
Click Run
Bug appears at this link:
https://replit.com/@DavidHayes3/WelllitWingedObservation#main.cpp
Browser/OS/Device:
Chrome Version 111.0.5563.65 (Official Build) (64-bit)
Windows 11 Pro