Problem grapevine
User rysneo
Submission Time 2025-03-20 16:44:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

grapevine.cpp: In function ‘long long int dfs(long long int, long long int, std::vector<std::vector<std::pair<long long int, long long int> > >&, std::vector<bool>&)’:
grapevine.cpp:13:61: error: expected ‘)’ before ‘;’ token
13 | farthest = min(farthest, w + dfs(node, cur, adj , grapes);
| ~ ^
| )
grapevine.cpp: In function ‘int32_t main()’:
grapevine.cpp:35:33: error: no matching function for call to ‘std::vector<std::pair<long long int, long long int> >::push_back(const long long int&, long long int)’
35 | adj[i].push_back(INF, i+100000);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,