F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-10-06 04:27:32, Gzip enabled