fun.cpp: In function 'long long int* createFunTour(long long int, long long int)':
fun.cpp:27:10: error: invalid types 'long long int[long long int]' for array subscript
27 | q[k[i]].push(mp(d[i], i));
| ^
fun.cpp:31:22: error: invalid types 'long long int[int]' for array subscript
31 | while(2*max(max(q[1].size(), q[2].size()), q[3].size())<q[1].size()+q[2].size()+q[3].size()) {
| ^
fun.cpp:31:35: error: invalid types 'long long int[int]' for array subscript
31 | while(2*max(max(q[1].size(), q[2].size()), q[3].size())<q[1].size()+q[2].size()+q[3].size()) {
| ^
fun.cpp:31:49: error: invalid types 'long long int[int]' for array subscript
31 | while(2*max(max(q[1].size(), q[2].size()), q[3].size())<q[1].size()+q[2].size()+q[3].size()) {
| ^
fun.cpp:31:62: error: invalid types 'long long int[int]' for array subscript
31 | while(2*max(max(q[1].size(), q[2].size()), q[3].size())<q[1].size()+q[2].size()+q[3].size()) {
| ^
fun.cpp:31:74: error: invalid types 'long long int[int]' for array subscript
31 | while(2*max(max(q[1].size(), q[2].size()), q[3].size())<q[1].size()+q[2].size()+q[3].size()) {
| ^
fun.cpp:31:86: error: invalid types 'long long int[int]' for array subscript
31 | while(2*max(max(q[1].size(), q[2].size()), q[3].size())<q[1].size()+q[2].size()+q[3].size()) {
| ^
fun.cpp:35:23: error: invalid types 'long long int[int]' for array subscript
35 | if(m<q[i].front().first) {
| ^
fun.cpp:36:24: error: invalid types 'long long int[int]' for array subscript
36 | m=q[i].front().first;
| ^
fun.cpp:42:17: error: invalid types 'long long int[long long int]' for array subscript
42 | p[ctr]=q[x].front().second;
| ^
fun.cpp:44:10: error: invalid types 'long long int[long long int]' for array subscript
44 | q[x].pop();
| ^
fun.cpp:47:13: error: invalid types 'long long int[int]' for array subscript
47 | if(q[i].size()==max(max(q[1].size(), q[2].size()), q[3].size())) M=i;
| ^
fun.cpp:47:34: error: invalid types 'long long int[int]' for array subscript
47 | if(q[i].size()==max(max(q[1].size(), q[2].size()), q[3].size())) M=i;
| ^
fun.cpp:47:47: error: invalid types 'long long int[int]' for array subscript
47 | if(q[i].size()==max(max(q[1].size(), q[2].size()), q[3].size())) M=i;
| ^
fun.cpp:47:61: error: invalid types 'long long int[int]' for array subscript
47 | if(q[i].size()==max(max(q[1].size(), q[2].size()), q[3].size())) M=i;
| ^
fun.cpp:50:19: error: invalid types 'long long int[int]' for array subscript
50 | if(x!=i&&q[i].size()!=max(max(q[1].size(), q[2].size()), q[3].size())&&q[i].front().first==max(max(q[1].front().first, q[2].front().first), q[3].front().first)) {
| ^
fun.cpp:50:40: error: invalid types 'long long int[int]' for array subscript
50 | if(x!=i&&q[i].size()!=max(max(q[1].size(), q[2].size()), q[3].size())&&q[i].front().first==max(max(q[1].front().first, q[2].front().first), q[3].front().first)) {
| ^
fun.cpp:50:53: error: invalid types 'long long int[int]' for array subscript
50 | if(x!=i&&q[i].size()!=max(max(q[1].size(), q[2].size()), q[3].size())&&q[i].front().first==max(max(q[1].front().first, q[2].front().first), q[3].front().first)) {
| ^
fun.cpp:50:67: error: invalid types 'long long int[int]' for array subscript
50 | if(x!=i&&q[i].size()!=max(max(q[1].size(), q[2].size()), q[3].size())&&q[i].front().first==max(max(q[1].front().first, q[2].front().first), q[3].front().first)) {
| ^
fun.cpp:50:81: error: invalid types 'long long int[int]' for array subscript
50 | if(x!=i&&q[i].size()!=max(max(q[1].size(), q[2].size()), q[3].size())&&q[i].front().first==max(max(q[1].front().first, q[2].front().first), q[3].front().first)) {
| ^
fun.cpp:50:109: error: invalid types 'long long int[int]' for array subscript
50 | if(x!=i&&q[i].size()!=max(max(q[1].size(), q[2].size()), q[3].size())&&q[i].front().first==max(max(q[1].front().first, q[2].front().first), q[3].front().first)) {
| ^
fun.cpp:50:129: error: invalid types 'long long int[int]' for array subscript
50 | if(x!=i&&q[i].size()!=max(max(q[1].size(), q[2].size()), q[3].size())&&q[i].front().first==max(max(q[1].front().first, q[2].front().first), q[3].front().first)) {
| ^
fun.cpp:50:150: error: invalid types 'long long int[int]' for array subscript
50 | if(x!=i&&q[i].size()!=max(max(q[1].size(), q[2].size()), q[3].size())&&q[i].front().first==max(max(q[1].front().first, q[2].front().first), q[3].front().first)) {
| ^
fun.cpp:51:21: error: invalid types 'long long int[int]' for array subscript
51 | p[ctr]=q[i].front().second;
| ^
fun.cpp:53:14: error: invalid types 'long long int[int]' for array subscript
53 | q[i].pop();
| ^
fun.cpp:58:17: error: invalid types 'long long int[long long int]' for array subscript
58 | p[ctr]=q[M].front().second;
| ^
fun.cpp:60:10: error: invalid types 'long long int[long long int]' for array subscript
60 | q[M].pop();
| ^
fun.cpp:63:22: error: invalid types 'long long int[int]' for array subscript
63 | while(2*max(max(q[1].size(), q[2].size()), q[3].size())>0) {
| ^
fun.cpp:63:35: error: invalid types 'long long int[int]' for array subscript
63 | while(2*max(max(q[1].size(), q[2].size()), q[3].size())>0) {
| ^
fun.cpp:63:49: error: invalid types 'long long int[int]' for array subscript
63 | while(2*max(max(q[1].size(), q[2].size()), q[3].size())>0) {
| ^
fun.cpp:68:27: error: invalid types 'long long int[int]' for array subscript
68 | if(m<q[i].front().first) {
| ^
fun.cpp:69:28: error: invalid types 'long long int[int]' for array subscript
69 | m=q[i].front().first;
| ^
fun.cpp:75:17: error: invalid types 'long long int[long long int]' for array subscript
75 | p[ctr]=q[x].front().second;
| ^
fun.cpp:77:10: error: invalid types 'long long int[long long int]' for array subscript
77 | q[x].pop();
| ^