prog.cpp: In function ‘void dfsvisit(int)’:
prog.cpp:16:16: warning: init-statement in selection statements only available with -std=c++17 or -std=gnu++17
if(adj[i]==WHITE){
^~~
prog.cpp:3:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
#define WHITE 1 ;
^
prog.cpp:16:24: note: in expansion of macro ‘WHITE’
if(adj[i]==WHITE){
^~~~~
prog.cpp:16:29: error: expected primary-expression before ‘)’ token
if(adj[i]==WHITE){
^
prog.cpp: In function ‘void dfs()’:
prog.cpp:25:9: error: ‘colo’ was not declared in this scope
colo[i]=WHITE;
^~~~
prog.cpp:25:9: note: suggested alternative: ‘color’
colo[i]=WHITE;
^~~~
color
prog.cpp:28:12: warning: init-statement in selection statements only available with -std=c++17 or -std=gnu++17
if(color[i]==WHITE){
^~~~~
prog.cpp:28:27: error: expected primary-expression before ‘)’ token
if(color[i]==WHITE){
^
prog.cpp: In function ‘int main()’:
prog.cpp:36:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&node,&edge);
~~~~~^~~~~~~~~~~~~~~~~~~~
prog.cpp:38:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n1,&n2);
~~~~~^~~~~~~~~~~~~~~~