0_0_36338252_14086.cpp: In function 'void addUndirEdge(const int&, const int&)':
0_0_36338252_14086.cpp:16:15: error: 'addEdge' was not declared in this scope
addEdge(u, v), addEdge(v, u);
^
0_0_36338252_14086.cpp: In function 'void init()':
0_0_36338252_14086.cpp:19:5: error: 'tot' was not declared in this scope
tot=0;
^
0_0_36338252_14086.cpp:21:12: error: 'head' was not declared in this scope
memset(head,-1,sizeof(head));
^
0_0_36338252_14086.cpp: In function 'bool findroad(int)':
0_0_36338252_14086.cpp:24:11: error: 'head' was not declared in this scope
int i=head[u];
^
0_0_36338252_14086.cpp:26:15: error: 'to' was not declared in this scope
int v=to[i]; i=next1[i];
^
0_0_36338252_14086.cpp:26:24: error: 'next1' was not declared in this scope
int v=to[i]; i=next1[i];
^
0_0_36338252_14086.cpp: In function 'int main()':
0_0_36338252_14086.cpp:39:18: error: 'scanf' was not declared in this scope
scanf("%d",&T);
^
0_0_36338252_14086.cpp:50:16: error: 'head' was not declared in this scope
if(head[n]!=-1) {
^
0_0_36338252_14086.cpp:56:28: error: 'printf' was not declared in this scope
printf("%d\n",ans/2);
^
|