prog.cpp: In function 'void dfs(int, int)':
prog.cpp:6:2: error: 'visited' was not declared in this scope
visited[v] = 1;
^
prog.cpp:8:6: error: 'i' was not declared in this scope
rep(i, 0, SZ(g[v]))
^
prog.cpp:8:15: error: 'g' was not declared in this scope
rep(i, 0, SZ(g[v]))
^
prog.cpp:8:19: error: 'SZ' was not declared in this scope
rep(i, 0, SZ(g[v]))
^
prog.cpp:8:20: error: 'rep' was not declared in this scope
rep(i, 0, SZ(g[v]))
^
prog.cpp: At global scope:
prog.cpp:24:1: error: expected unqualified-id before 'for'
for(int i=0;i<n;i++)
^
prog.cpp:24:13: error: 'i' does not name a type
for(int i=0;i<n;i++)
^
prog.cpp:24:17: error: 'i' does not name a type
for(int i=0;i<n;i++)
^