Problem | books |
---|---|
User | ChickenCoder |
Submission Time | 2023-07-14 02:57:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
In file included from /usr/include/c++/9/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from books.cpp:1:
books.cpp: In function ‘long long int minimum_walk(std::vector<int>, int)’:
books.cpp:42:50: error: request for member ‘second’ in ‘start’, which is of non-class type ‘int’
42 | assert(ranges[start].first == s || ranges[start.second] == s);
| ^~~~~~