Problem 4sum
User Huoi
Submission Time 2023-03-17 21:35:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

4sum.cpp: In function ‘void solve()’:
4sum.cpp:20:18: error: invalid types ‘int[int]’ for array subscript
20 | x[a[i] + b[j]] = {i, j};
| ^
4sum.cpp:20:25: error: invalid types ‘int[int]’ for array subscript
20 | x[a[i] + b[j]] = {i, j};
| ^
4sum.cpp:27:18: error: invalid types ‘int[int]’ for array subscript
27 | y[c[i] + d[j]] = {i, j};
| ^
4sum.cpp:27:25: error: invalid types ‘int[int]’ for array subscript
27 | y[c[i] + d[j]] = {i, j};
| ^
4sum.cpp:35:37: error: invalid types ‘int[int]’ for array subscript
35 | cout << a[u.second.first] << " " << b[u.second.second] << " " << c[v.second.first] << " " << d[v.second.second];
| ^
4sum.cpp:35:66: error: invalid types ‘int[int]’ for