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