indcyc.cpp: In function 'void dfs(int)':
indcyc.cpp:14:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v[x].size(); i++)
~~^~~~~~~~~~~~~
indcyc.cpp: In function 'void dfs1(int, int)':
indcyc.cpp:29:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v[x].size(); i++)
~~^~~~~~~~~~~~~
indcyc.cpp: In function 'void fnd(int, int, int)':
indcyc.cpp:37:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < c.size(); i++)
~~^~~~~~~~~~
indcyc.cpp:43:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < C.size(); i++)
~~^~~~~~~~~~
indcyc.cpp:50:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(X == C.size() - 1) break;
~~^~~~~~~~~~~~~~~
indcyc.cpp:51:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v[k].size(); i++){
~~^~~~~~~~~~~~~
indcyc.cpp:47:23: warning: variable 'm1' set but not used [-Wunused-but-set-variable]
int k = C[X], m1 = k, m2 = X;
^~
indcyc.cpp: At global scope:
indcyc.cpp:62:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
indcyc.cpp: In function 'int main()':
indcyc.cpp:92:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < c.size(); k++){
~~^~~~~~~~~~
indcyc.cpp:93:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int t = 0; t < v[c[k]].size(); t++){
~~^~~~~~~~~~~~~~~~
indcyc.cpp:101:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g.size(); i++)
~~^~~~~~~~~~
indcyc.cpp:103:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i1 = 0; i1 < g.size(); i1++){
~~~^~~~~~~~~~
indcyc.cpp:104:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = i1 + 1; j < g.size(); j++){
~~^~~~~~~~~~
indcyc.cpp:65:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a[i],&b[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~