Problem | ducks |
---|---|
User | oogabooga |
Submission Time | 2025-07-31 19:16:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ducks.cpp: In function ‘bool check(long long int)’:
ducks.cpp:63:14: error: request for member ‘size’ in ‘x.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)(i + 1)))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
63 | if (x[i+1].size()<x[i].size())swap(x[i], x[i+1]);
| ^~~~
ducks.cpp:63:26: error: request for member ‘size’ in ‘x.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
63 | if (x[i+1].size()<x[i].size())swap(x[i], x[i+1]);
| ^~~~
ducks.cpp:64:18: error: ‘begin’ was not declared in this scope
64 | for (auto a:x[i])x[i+1].pb(a);
|