Compiling C++ code makes the system hang
问题 When I try to compile this file by issuing the command, "g++ qr.cpp -o qr" The system hangs. I haven't seen this kind of an error anywhere else. #include<iostream> using namespace std; bool win[1000000001]; bool know[1000000001]; int sixes[] = {6, 36, 216, 1296, 7776, 46656, 279936, 1679616, 10077696, 60466176, 362797056}; bool check(int n){ cout << n << endl; if(!know[n]){ bool b = check(n-1); for(int i=0; i<11; i++){ if(n > sixes[i]){ b = b & check(n-sixes[i]); } } win[n] = !b; } return win