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_36759819_5932.cpp:17:20: error: expected ']' before '[' token
 double lens[[MAX_N][[MAX_N], diss[MAX_NUM];//¿Óѽ£¬¾ÓÈ»Íü¼ÇN*NÁË
                    ^
0_0_36759819_5932.cpp: In member function 'int Dancing_Links_X::leave()':
0_0_36759819_5932.cpp:71:18: error: 'MAXSIZE' was not declared in this scope
         bool vis[MAXSIZE]; memset(vis, false, sizeof vis);
                  ^
0_0_36759819_5932.cpp:71:35: error: 'vis' was not declared in this scope
         bool vis[MAXSIZE]; memset(vis, false, sizeof vis);
                                   ^
0_0_36759819_5932.cpp: In function 'bool check(int)':
0_0_36759819_5932.cpp:108:23: error: invalid types 'double[int]' for array subscript
             if (lens[i][j] <= diss[mid])
                       ^
0_0_36759819_5932.cpp:108:31: error: 'diss' was not declared in this scope
             if (lens[i][j] <= diss[mid])
                               ^
0_0_36759819_5932.cpp: In function 'void solve()':
0_0_36759819_5932.cpp:122:19: error: invalid types 'double[int]' for array subscript
             lens[i][j] = dis(i, j);
                   ^
0_0_36759819_5932.cpp:123:13: error: 'diss' was not declared in this scope
             diss[size++] = lens[i][j];
             ^
0_0_36759819_5932.cpp:123:34: error: invalid types 'double[int]' for array subscript
             diss[size++] = lens[i][j];
                                  ^
0_0_36759819_5932.cpp:125:10: error: 'diss' was not declared in this scope
     sort(diss, diss + size);
          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 12:00:15, Gzip enabled