indcyc.cpp: In function 'void dfs(int)':
indcyc.cpp:11:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v[x].size(); i++)
~~^~~~~~~~~~~~~
indcyc.cpp: At global scope:
indcyc.cpp:14:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
indcyc.cpp: In function 'int main()':
indcyc.cpp:48:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < c.size(); k++){
~~^~~~~~~~~~
indcyc.cpp:49:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int t = 0; t < v[c[k]].size(); t++){
~~^~~~~~~~~~~~~~~~
indcyc.cpp:57:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g.size(); i++)
~~^~~~~~~~~~
indcyc.cpp:59:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i1 = 0; i1 < g.size(); i1++){
~~~^~~~~~~~~~
indcyc.cpp:60:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = i1 + 1; j < g.size(); j++){
~~^~~~~~~~~~
indcyc.cpp:18: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]);
~~~~~^~~~~~~~~~~~~~~~~~~~