Problem gohcart
User beepbeepsheep
Submission Time 2022-12-27 11:13:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gohcart.cpp: In function ‘long long int C(long long int, long long int)’:
gohcart.cpp:21:13: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘count’
21 | if (adj[b].count(a)) ans=min(ans,dp[1][a]+adj[b][a]);
| ^~~~~
gohcart.cpp:21:43: error: no match for ‘operator+’ (operand types are ‘long long int’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’})
21 | if (adj[b].count(a)) ans=min(ans,dp[1][a]+adj[b][a]);
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from gohcart.cpp:1:
/usr/include/