Problem | transform |
---|---|
User | zyh571 |
Submission Time | 2023-02-16 17:10:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
transform.cpp: In function ‘int main()’:
transform.cpp:18:6: error: no match for ‘operator!’ (operand type is ‘std::map<char, std::pair<char, int> >::mapped_type’ {aka ‘std::pair<char, int>’})
18 | if(!adj[a]) adj[a] = {b,c};
transform.cpp:18:6: note: candidate: ‘operator!(bool)’ <built-in>
transform.cpp:18:6: note: no known conversion for argument 1 from ‘std::map<char, std::pair<char, int> >::mapped_type’ {aka ‘std::pair<char, int>’} to ‘bool’