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_20431913_14850.cpp:5:86: error: too many initializers for 'bool [11]'
 bool arrTable[11] = {0, 1, 0, 0, 2, 10, 4, 40, 92, 352, 724, 2680, 7809, 10831, 43531}, arrRow[30], arrLeft[30], arrRight[30];
                                                                                      ^
0_0_20431913_14850.cpp: In function 'void search(const int&, int&)':
0_0_20431913_14850.cpp:15:26: error: invalid types 'bool[int]' for array subscript
         if (arrTable[x][i] || arrRow[i] || arrLeft[x-i+n] || arrRight[x+i])
                          ^
0_0_20431913_14850.cpp:17:22: error: invalid types 'bool[int]' for array subscript
         arrTable[x][i] = arrRow[i] = arrLeft[x-i+n] = arrRight[x+i] = true;
                      ^
0_0_20431913_14850.cpp:19:22: error: invalid types 'bool[int]' for array subscript
         arrTable[x][i] = arrRow[i] = arrLeft[x-i+n] = arrRight[x+i] = false;
                      ^


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:37:52, Gzip enabled