indcyc.cpp: In function 'void dfs(int)':
indcyc.cpp:13: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:28: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:36:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < c.size(); i++)
~~^~~~~~~~~~
indcyc.cpp:42:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < C.size(); i++)
~~^~~~~~~~~~
indcyc.cpp:44:9: warning: unused variable 'X' [-Wunused-variable]
int X = 0;
^
indcyc.cpp: At global scope:
indcyc.cpp:61:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
indcyc.cpp: In function 'int main()':
indcyc.cpp:91:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < c.size(); k++){
~~^~~~~~~~~~
indcyc.cpp:92:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int t = 0; t < v[c[k]].size(); t++){
~~^~~~~~~~~~~~~~~~
indcyc.cpp:100:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g.size(); i++)
~~^~~~~~~~~~
indcyc.cpp:102:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i1 = 0; i1 < g.size(); i1++){
~~~^~~~~~~~~~
indcyc.cpp:103:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = i1 + 1; j < g.size(); j++){
~~^~~~~~~~~~
indcyc.cpp:64: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]);
~~~~~^~~~~~~~~~~~~~~~~~~~