friends.cpp: In function 'void dfs(int)':
friends.cpp:17:19: error: expected primary-expression before ']' token
if(dfn[it]) low[]
^
friends.cpp: In function 'void go()':
friends.cpp:29:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<std::vector<int> >::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", bcc.size());
~~~~~~~~~~^
friends.cpp:31:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d ", it.size());
~~~~~~~~~^
friends.cpp: In function 'int main()':
friends.cpp:47:76: error: 'fail' was not declared in this scope
for(int i=0; i<N; i++) for(int j=0; j<N; j++) if(chk[i][j] && !chk[j][i]) fail();
^~~~
friends.cpp:47:76: note: suggested alternative: 'main'
for(int i=0; i<N; i++) for(int j=0; j<N; j++) if(chk[i][j] && !chk[j][i]) fail();
^~~~
main
friends.cpp:54:2: error: 'fail' was not declared in this scope
fail();
^~~~
friends.cpp:54:2: note: suggested alternative: 'main'
fail();
^~~~
main
friends.cpp:39:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&N,&p,&q);
~~~~~^~~~~~~~~~~~~~~~~~~
friends.cpp:41:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int m; scanf("%d",&m);
~~~~~^~~~~~~~~
friends.cpp:43:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int foo; scanf("%d",&foo);
~~~~~^~~~~~~~~~~