Problem | appletree |
---|---|
User | jatrophalouvre |
Submission Time | 2024-09-13 18:39:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
appletree.cpp: In function ‘void driver()’:
appletree.cpp:85:91: error: expected ‘)’ before ‘}’ token
85 | if (vit==dp[v].end()) dp[v].insert({w, max(dp[v].size()?dp[v].rbegin()->se:0, ul+1});
| ~ ^
| )
appletree.cpp:85:92: error: no matching function for call to ‘std::set<std::pair<int, int> >::insert(<brace-enclosed initializer list>)’
85 | if (vit==dp[v].end()) dp[v].insert({w, max(dp[v].size()?dp[v].rbegin()->se:0, ul+1});
| ^
In file included from /usr/include/c++/9/set:61,
from appletree.cpp:4:
/usr/include/c++/9/bits/stl_set.h:509:7: note: candidate: ‘std::pair<typename std::_Rb_tree<_Key, _Key, std: