/in/foo.cc: In function 'void pre()':
/in/foo.cc:9:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
/in/foo.cc: In function 'void dfs()':
/in/foo.cc:36:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0;j<e[ntp].size();j++){
~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:50:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i=1;i<n;i++) printf("%d ",num[i]);printf("%d\n",num[n]);
^~~
/in/foo.cc:50:41: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (i=1;i<n;i++) printf("%d ",num[i]);printf("%d\n",num[n]);
^~~~~~
/in/foo.cc:45:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^