books.cpp: In function 'void go(int, long long int)':
books.cpp:9:5: error: 'in' was not declared in this scope
if(in[v] == 1){
^~
books.cpp:9:5: note: suggested alternative: 'yn'
if(in[v] == 1){
^~
yn
books.cpp:14:9: error: too few arguments to function 'void go(int, long long int)'
go(p[v]);
^
books.cpp:8:6: note: declared here
void go(int v, long long c){
^~
books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:22:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < p.size(); i++){
~~^~~~~~~~~~
books.cpp:23:6: error: 'in' was not declared in this scope
if(in[i] || p[i] == i) continue;
^~
books.cpp:23:6: note: suggested alternative: 'i'
if(in[i] || p[i] == i) continue;
^~
i