DFS medyje

Taškai: 0

Compile: FAIL

dfs_medyje.cpp: In function ‘void dfs(int, int, int)’: dfs_medyje.cpp:14:5: error: expected ‘;’ before ‘ans’ ans[x][2]=(int)adj[x].size()-1; ^ dfs_medyje.cpp: In function ‘int main()’: dfs_medyje.cpp:32:41: error: ‘vectmp’ was not declared in this scope for(int i=0;i<n-1;i++)adj.push_back(vectmp); ^ dfs_medyje.cpp:33:29: error: request for member ‘push_back’ in ‘ans’, which is of non-class type ‘int [100001][3]’ for(int i=0;i<n;i++)ans.push_back(vectmp); ^ dfs_medyje.cpp:33:39: error: ‘vectmp’ was not declared in this scope for(int i=0;i<n;i++)ans.push_back(vectmp); ^

nr.resulttimemessage