我想用Lambda实现类似于
struct node{int to,val;}; vector <node> e[MAXN];
的功能该怎写啊,百度找的看不懂,有大佬能教教吗?
大概框架应该是这个样子,但是这么写报错了。
vector< []()->{int to,val;} > e[MAXN];