Problem transform
User zyh571
Submission Time 2023-02-16 17:09:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

transform.cpp: In function ‘int main()’:
transform.cpp:18:35: error: expected ‘)’ before ‘}’ token
18 | adj[a] = {b,min(c, adj[a].second};
| ~ ^
| )
transform.cpp:18:35: error: no match for ‘operator=’ (operand types are ‘std::map<char, std::pair<char, int> >::mapped_type’ {aka ‘std::pair<char, int>’} and ‘<brace-enclosed initializer list>’)
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
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 transform.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:378:7: note: candidate: ‘std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(typename std::conditional<std::__and_<std::is_copy_assignable<_T1>, std::is_copy_assign