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

Compile Error

4sum.cpp: In function ‘int main()’:
4sum.cpp:42:23: error: cannot convert ‘std::pair<long long int, std::vector<long long int> >’ to ‘long long int’ in initialization
42 | long long element = *it;
| ^~~
| |
| std::pair<long long int, std::vector<long long int> >
4sum.cpp:43:15: error: no match for ‘operator==’ (operand types are ‘long long int’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, std::vector<long long int> > >, std::pair<long long int, std::vector<long long int> > >::value_type’ {aka ‘std::pair<long long int, std::vector<long long int> >’})
43 | if (element == combi1[i]){
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from 4sum.cpp:1:
/usr/include/c++/9/bits/r