Problem firefighting
User blackscreen1
Submission Time 2024-02-22 09:39:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

firefighting.cpp: In function ‘void dfs2(long long int, long long int)’:
firefighting.cpp:53:45: error: cannot convert ‘std::pair<long long int, long long int>’ to ‘long long int’
53 | if (!vis[nd] && dpt + it.first <= m) dfs2(it, dpt + it.first);
| ^~
| |
| std::pair<long long int, long long int>
firefighting.cpp:50:14: note: initializing argument 1 of ‘void dfs2(long long int, long long int)’
50 | void dfs2(ll nd, ll dpt) {
| ^
firefighting.cpp: In function ‘int main()’:
firefighting.cpp:85:28: error: too many arguments to function ‘void dfs2(long long int, long long int)’
85 | dfs2(cnd, twok[cnd][0], 0);
| ^
firefighting.cpp:50:6: note: declared here
50 | void dfs2(ll nd, ll dpt) {
| ^~~~