Problem | competition |
---|---|
User | Henries |
Submission Time | 2024-10-05 23:56:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
competition.cpp: In function ‘long long int solve(std::multimap<long long int, std::pair<std::__cxx11::basic_string<char>, long long int>, std::greater<long long int> >, long long int, long long int)’:
competition.cpp:9:42: error: no match for ‘operator[]’ (operand types are ‘std::tuple_element<1, std::pair<const long long int, std::pair<std::__cxx11::basic_string<char>, long long int> > >::type’ {aka ‘std::pair<std::__cxx11::basic_string<char>, long long int>’} and ‘int’)
9 | if (a!=0 && find(v.begin(),v.end(),val[1]) == v.end()){
| ^
competition.cpp:17:42: error: no match for ‘operator[]’ (operand types are ‘std::tuple_element<1, std::pair<const long long int, std::pair<std::__cxx11::basic_string<char>, long long int> > >::type’ {aka ‘std::pair<std::__cxx11::basic_string<char>, long long int>’} and ‘int’)
17 | if (b