Problem | funnysequence |
---|---|
User | PlayVoltz |
Submission Time | 2024-11-20 00:02:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
funnysequence.cpp: In function ‘void init()’:
funnysequence.cpp:8:12: error: request for member ‘push_back’ in ‘vect.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’}
8 | #define pb push_back
| ^~~~~~~~~
funnysequence.cpp:18:11: note: in expansion of macro ‘pb’
18 | vect[i].pb(i*i*i+(int)sqrt(vect[i-1])+(int)sqrt(vect[i-2]));
| ^~