our task is to write a cache simulator in C++, and are now struggeling with a mistake. We get a segmentation fault(core dumped) error in the line
if(cache[cur.S][i].v