0_0_14586841_9740.cpp:12:1: error: expected initializer before 'int'
int cnt, n;
^
0_0_14586841_9740.cpp: In function 'void addedge(int, int, int)':
0_0_14586841_9740.cpp:23:10: error: 'cnt' was not declared in this scope
edge[cnt] = Edge(u, v, val);
^
0_0_14586841_9740.cpp: In function 'void DFS(int, int, int)':
0_0_14586841_9740.cpp:33:9: error: 'dp' was not declared in this scope
dp[val]++;
^
0_0_14586841_9740.cpp: In function 'void init()':
0_0_14586841_9740.cpp:44:12: error: 'dp' was not declared in this scope
memset(dp, 0, sizeof(dp));
^
0_0_14586841_9740.cpp: In function 'int main()':
0_0_14586841_9740.cpp:54:22: error: 'n' was not declared in this scope
scanf("%d", &n);
^
0_0_14586841_9740.cpp:56:9: error: 'cnt' was not declared in this scope
cnt = 0;
^
0_0_14586841_9740.cpp:72:24: error: 'dp' was not declared in this scope
ans += dp[temp];
^
|