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_16933068_32059.cpp:23:17: error: invalid types 'int[int]' for array subscript
 int bpre[501[501];    //used to store boys' prefrence, bpre[i][j] = k means to boy i, he ranks the girl k in jth place, the girl k is his jth choice.
                 ^
0_0_16933068_32059.cpp:23:18: error: expected ']' before ';' token
 int bpre[501[501];    //used to store boys' prefrence, bpre[i][j] = k means to boy i, he ranks the girl k in jth place, the girl k is his jth choice.
                  ^
0_0_16933068_32059.cpp: In function 'int main()':
0_0_16933068_32059.cpp:71:13: error: 'bpre' was not declared in this scope
             bpre[i][0] = 1;    //b[i][0] store thes ranking number of the girl whom this boy is asking, every boy starts from the 1st girl.
             ^
0_0_16933068_32059.cpp:119:25: error: 'bpre' was not declared in this scope
             gaskindex = bpre[bindex][bpre[bindex][0]];
                         ^


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.001001(s) query 1, Server time : 2025-02-17 09:25:38, Gzip enabled