Problem | chimera |
---|---|
User | AlphanumericUsername |
Submission Time | 2024-07-29 22:21:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
chimera.cpp: In function ‘void initialise(int, int, std::vector<int>)’:
chimera.cpp:25:36: error: request for member ‘resize’ in ‘a.std::vector<int>::operator[](((std::vector<int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
25 | for (int i = 0; i < n; ++i) a[i].resize(n);
| ^~~~~~
chimera.cpp:29:15: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
29 | a[i][j] = a[i - 1][j] + (arr[i] == j);
| ^
chimera.cpp:29:29: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
29 | a[i][j] = a[i - 1][j] + (arr[i] == j);
| ^
chimera.cpp:31:15: error: invalid types ‘__gnu_cxx::_