0_0_32867328_26826.cpp:1:1: error: expected unqualified-id before 'if' if (save[i-1][j]) save[i][(j+num[k])%i]=true; //https://blog.csdn.net/Keith_windniw/article/details/45581393 ^