books.cpp:19:2: error: extended character is not valid in an identifier
19 | first_non_id = min(first_non_id, s);
| ^
books.cpp:20:2: error: extended character is not valid in an identifier
20 | last_non_id = max(last_non_id, s);
| ^
books.cpp:26:2: error: extended character is not valid in an identifier
26 | if (component_end == i)
| ^
books.cpp:26:5: error: extended character is not valid in an identifier
26 | if (component_end == i)
| ^
books.cpp:26:8: error: extended character is not valid in an identifier
26 | if (component_end == i)
| ^
books.cpp:26:11: error: extended character is not valid in an identifier
26 | if (component_end == i)
| ^
books.cpp:30:2: error: extended character is not valid in an identifier
30 | return ans - 2;
| ^
books.cpp:30:5: error: extended character is not valid in an identifier
30 | return ans - 2;
| ^
books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:10:23: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
10 | for (int i = 0; i < n; ++i)
| ~~^~~
books.cpp:14:25: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
14 | while (first_non_id < n && p[first_non_id] == first_non_id)
| ~~~~~~~~~~~~~^~~
books.cpp:19:2: error: '\U000000a0first_non_id' was not declared in this scope; did you mean 'first_non_id'?
19 | first_non_id = min(first_non_id, s);
| ^~~~~~~~~~~~~
| first_non_id
books.cpp:20:2: error: '\U000000a0last_non_id' was not declared in this scope; did you mean 'last_non_id'?
20 | last_non_id = max(last_non_id, s);
| ^~~~~~~~~~~~
| last_non_id
books.cpp:26:2: error: '\U000000a0' was not declared in this scope
26 | if (component_end == i)
| ^
books.cpp:30:2: error: '\U000000a0' was not declared in this scope
30 | return ans - 2;
| ^
books.cpp:31:1: warning: no return statement in function returning non-void [-Wreturn-type]
31 | }
| ^