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