Problem | graphcraft |
---|---|
User | Reverberate |
Submission Time | 2024-03-15 22:16:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
graphcraft.cpp:10:39: error: expected ‘,’ or ‘...’ before ‘&’ token
10 | int dp(int idx, vector<pair<int,int>>V&[]){
| ^
graphcraft.cpp: In function ‘long long int dp(long long int, std::vector<std::pair<long long int, long long int> >)’:
graphcraft.cpp:14:24: error: no matching function for call to ‘begin(std::pair<long long int, long long int>&)’
14 | for(auto [t,a] : V[idx]){
| ^
In file included from /usr/include/c++/9/utility:76,
from /usr/include/c++/9/bits/stl_uninitialized.h:60,
from /usr/include/c++/9/vector:66,
from graphcraft.h:1,
from graphcraft.cpp:1:
/usr/include/c++/9/initializer_list:89:5: note: candidate: ‘template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)’
89 | begin(initializer_list<_Tp> __ils) noexce