Problem 4sum
User Henries
Submission Time 2024-12-04 10:33:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

4sum.cpp: In function ‘int main()’:
4sum.cpp:25:43: error: template argument 1 is invalid
25 | vector<pair<long long,vector<long long>> combi1;
| ^~~~~~
4sum.cpp:25:43: error: template argument 2 is invalid
4sum.cpp:26:43: error: template argument 1 is invalid
26 | vector<pair<long long,vector<long long>> combi2;
| ^~~~~~
4sum.cpp:26:43: error: template argument 2 is invalid
4sum.cpp:29:4: error: ‘combi1’ was not declared in this scope
29 | combi1.push_back({A[i] + B[j],{A[i],B[j]}});
| ^~~~~~
4sum.cpp:34:4: error: ‘combi2’ was not declared in this scope
34 | combi2.push_back({C[i] + D[j],{C[i],D[j]}});
| ^~~~~~
4sum.cpp:37:7: error: ‘combi1’ was not declared in this scope
37 | sort(combi1.begin(),combi1.end());
| ^~~~~~
4sum.cpp:38:7: error: ‘combi2’ was