0_0_20431804_18066.cpp:5:92: error: expected unqualified-id before ',' token
bool arrTable[11][11] = {0, 1, 0, 0, 2, 10, 4, 40, 92, 352, 724, 2680, 7809, 10831, 43531};, arrRow[30], arrLeft[30], arrRight[30];
^
0_0_20431804_18066.cpp:5:104: error: expected constructor, destructor, or type conversion before ',' token
bool arrTable[11][11] = {0, 1, 0, 0, 2, 10, 4, 40, 92, 352, 724, 2680, 7809, 10831, 43531};, arrRow[30], arrLeft[30], arrRight[30];
^
0_0_20431804_18066.cpp:5:117: error: expected constructor, destructor, or type conversion before ',' token
bool arrTable[11][11] = {0, 1, 0, 0, 2, 10, 4, 40, 92, 352, 724, 2680, 7809, 10831, 43531};, arrRow[30], arrLeft[30], arrRight[30];
^
0_0_20431804_18066.cpp:5:131: error: expected constructor, destructor, or type conversion before ';' token
bool arrTable[11][11] = {0, 1, 0, 0, 2, 10, 4, 40, 92, 352, 724, 2680, 7809, 10831, 43531};, arrRow[30], arrLeft[30], arrRight[30];
^
0_0_20431804_18066.cpp: In function 'void search(const int&, int&)':
0_0_20431804_18066.cpp:15:31: error: 'arrRow' was not declared in this scope
if (arrTable[x][i] || arrRow[i] || arrLeft[x-i+n] || arrRight[x+i])
^
0_0_20431804_18066.cpp:15:44: error: 'arrLeft' was not declared in this scope
if (arrTable[x][i] || arrRow[i] || arrLeft[x-i+n] || arrRight[x+i])
^
0_0_20431804_18066.cpp:15:62: error: 'arrRight' was not declared in this scope
if (arrTable[x][i] || arrRow[i] || arrLeft[x-i+n] || arrRight[x+i])
^
0_0_20431804_18066.cpp:17:26: error: 'arrRow' was not declared in this scope
arrTable[x][i] = arrRow[i] = arrLeft[x-i+n] = arrRight[x+i] = true;
^
0_0_20431804_18066.cpp:17:38: error: 'arrLeft' was not declared in this scope
arrTable[x][i] = arrRow[i] = arrLeft[x-i+n] = arrRight[x+i] = true;
^
0_0_20431804_18066.cpp:17:55: error: 'arrRight' was not declared in this scope
arrTable[x][i] = arrRow[i] = arrLeft[x-i+n] = arrRight[x+i] = true;
^
0_0_20431804_18066.cpp: In function 'int main()':
0_0_20431804_18066.cpp:28:17: error: 'arrTab' was not declared in this scope
cout << arrTab[n] << endl;
^
|