| Problem | guessarray |
|---|---|
| User | shenshiqi |
| Submission Time | 2026-09-18 21:46:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
guessarray.cpp: In function ‘void doProblem(int, int, int, int*)’:
guessarray.cpp:18:15: error: request for member ‘push_back’ in ‘idx.std::vector<int>::operator[](((std::vector<int>::size_type)curAns))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
18 | idx[curAns].push_back(i);
| ^~~~~~~~~
guessarray.cpp:22:37: error: request for member ‘size’ in ‘idx.std::vector<int>::operator[](((std::vector<int>::size_type)val))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
22 | for (ll i = 0; i < idx[val].size(); ++i){
| ^~~~
guessarray.cpp:28:22: error: request for member ‘size’ in ‘idx.std::vector<int>::operator[](((std::vector<int>::size_type)val))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allo