We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if 문안에 비교연산자와 증감연산자의 우선순위
if (map[rowBlock][columnBlock] += weight > 1) status = false;
이 부분이 weight > 1 비교연산이 먼저되어서 항상 0이었음. 따라서 변화가 없었음.
if ((map[rowBlock][columnBlock] += weight) > 1) status = false;
이부분을 이렇게 바꿈.