| Problem | potatosalad |
|---|---|
| User | AndyChen |
| Submission Time | 2026-03-06 13:42:37 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:11:8: error: request for member ‘push_back’ 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’}
11 | a[i].push_back(k);
| ^~~~~~~~~
potatosalad.cpp:13:9: error: request for member ‘begin’ in ‘g’, which is of non-class type ‘std::vector<int> [d]’
13 | fill(g.begin() , g.end(),0);
| ^~~~~
potatosalad.cpp:13:21: error: request for member ‘end’ in ‘g’, which is of non-class type ‘std::vector<int> [d]’
13 | fill(g.begin() , g.end(),0);
| ^~~
potatosalad.cpp:16:12: error: no match for ‘operator>’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} and ‘std::vector<int>’)
16 | if (a[j]>g[h]){
In file inc