Problem 4sum
User Huoi
Submission Time 2023-03-17 21:35:06
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:25:13: error: ‘y’ was not declared in this scope
25 | y[c[i] + d[j]] = {i, j};
| ^
4sum.cpp:25:18: error: invalid types ‘int[int]’ for array subscript
25 | y[c[i] + d[j]] = {i, j};
| ^
4sum.cpp:25:25: error: invalid types ‘int[int]’ for array subscript
25 | y[c[i] + d[j]] = {i, j};
| ^
4sum.cpp:31:13: error: ‘y’ was not declared in this scope
31 | if (y.find(-sum) != y.end()) {
| ^
4sum.cpp:33:37: error: invalid types ‘int[int]’ for array subscript
33 |