e*2
2 楼
报错
required from 'std::pair<_t1 _t2="">::pair(std::piecewise_construct_t, std::
tuple<_args1 ...="">, std::tuple<_args2 ...="">) [with _Args1 = {const int&}; _
Args2 = {}; _T1 = const int; _T2 = std::pair&>]'
class Employee {
public:
int id;
int importance;
std::vector subordinates;
};
class Solution_690 {
public:
int aux(std::unordered_map&>>&
parents, int ind) {
int res = parents[ind].first;
for (auto& t : parents[ind].second) {
res += aux(parents, t);
}
return res;
}
int getImportance(std::vector employees, int id) {
std::unordered_map&>> parents;
for (auto& p : employees) {
parents[p->id] = { p->importance, p->subordinates }; //Error here
}
return aux(parents, id);
}
};
required from 'std::pair<_t1 _t2="">::pair(std::piecewise_construct_t, std::
tuple<_args1 ...="">, std::tuple<_args2 ...="">) [with _Args1 = {const int&}; _
Args2 = {}; _T1 = const int; _T2 = std::pair
class Employee {
public:
int id;
int importance;
std::vector
};
class Solution_690 {
public:
int aux(std::unordered_map
parents, int ind) {
int res = parents[ind].first;
for (auto& t : parents[ind].second) {
res += aux(parents, t);
}
return res;
}
int getImportance(std::vector
std::unordered_map
for (auto& p : employees) {
parents[p->id] = { p->importance, p->subordinates }; //Error here
}
return aux(parents, id);
}
};
S*r
3 楼
卖光了
y*3
6 楼
恩,我打了离我家最近的5家bb都没有。。。
r*w
7 楼
卖光了。 定了pickup 2台.希望明天拿到
y*u
8 楼
我附件的BB也没了,估计给小二全拿光了.
y*3
9 楼
pickup网上是全价啊。。
相关阅读
boost::function 的 syntax 问题这句话是为什么呢?ssh question on linux想检查谁浏览网页,用什么实现?a question of perlsocket被block在accept的时候不能close……matlab取行数菜鸟问一个C++的问题Python的script的兼容问题有什么可视化的debug工具么自学算法与数据结构Java经典教材from beautiful code 找创业伙伴/实习机会微软on site多久出结果啊?STL/vector引用成员变量。[合集] a problem about stl compose1请教一个perl的问题 (转载)QueryTable object in excelC++一个string的小问题