keys.cpp:4:84: error: 'int index' redeclared as different kind of entity
4 | int n,m,isInStack[300001],low[300001],idx[300001],R[300001],cnt[300001],ch[300001],index=1,mn=1e9;
| ^~~~~
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from keys.cpp:1:
/usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
keys.cpp: In function 'void ssc(int)':
keys.cpp:7:12: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
7 | idx[v]=index;
| ^~~~~
keys.cpp:8:12: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
8 | low[v]=index;
| ^~~~~
keys.cpp:9:10: error: no post-increment operator for type
9 | index++;
| ^~
keys.cpp: In function 'std::vector<int> find_reachable(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
keys.cpp:55:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
55 | for (int i=0;i<n;i++)
| ^~~
keys.cpp:57:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
57 | return res;
| ^~~~~~