0_0_14295209_11802.cpp: In function 'void dfs(int, int)':
0_0_14295209_11802.cpp:51:3: error: 'dis' was not declared in this scope
dis[u] = dis[cur] + c[cur][i];
^
0_0_14295209_11802.cpp:51:23: error: 'c' was not declared in this scope
dis[u] = dis[cur] + c[cur][i];
^
0_0_14295209_11802.cpp:51:30: error: 'i' was not declared in this scope
dis[u] = dis[cur] + c[cur][i];
^
0_0_14295209_11802.cpp: In function 'void dfs(int, int)':
0_0_14295209_11802.cpp:75:6: error: redefinition of 'void dfs(int, int)'
void dfs(int m,int total){
^
0_0_14295209_11802.cpp:37:6: note: 'void dfs(int, int)' previously defined here
void dfs(int cur, int total) {
^
0_0_14295209_11802.cpp: In function 'int solved(int)':
0_0_14295209_11802.cpp:105:30: error: invalid types 'int [100005][int(int, int)]' for array subscript
return d[u] - d[lca[x][u]] - d[ lca[y][u] ] + d[lca[x][y]] ;
^
0_0_14295209_11802.cpp:105:47: error: invalid types 'int [100005][int(int, int)]' for array subscript
return d[u] - d[lca[x][u]] - d[ lca[y][u] ] + d[lca[x][y]] ;
^
0_0_14295209_11802.cpp:105:62: error: invalid types 'int [100005][int(int, int)]' for array subscript
return d[u] - d[lca[x][u]] - d[ lca[y][u] ] + d[lca[x][y]] ;
^
0_0_14295209_11802.cpp: In function 'int main()':
0_0_14295209_11802.cpp:137:16: error: 'bing' was not declared in this scope
memset(bing,-1,sizeof(bing));
^
0_0_14295209_11802.cpp:138:32: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
memset(lca,0,sizeof(lca));
^
0_0_14295209_11802.cpp:138:33: error: invalid conversion from 'int (*)(int, int)' to 'void*' [-fpermissive]
memset(lca,0,sizeof(lca));
^
In file included from 0_0_14295209_11802.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:43:18: note: initializing argument 1 of 'void* memset(void*, int, size_t)'
void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
^
0_0_14295209_11802.cpp:139:17: error: 'tajian' was not declared in this scope
tajian(1);
^
0_0_14295209_11802.cpp:140:9: error: 'total' was not declared in this scope
total = 0;
^
0_0_14295209_11802.cpp:148:33: error: 'solve' was not declared in this scope
total += solve(b) ;
^
|