The following never terminates on my system.
#include using namespace std; int main(){ int solutions[1000][4] = {}; for(int a