0_0_23814294_22695.cpp: In function 'void heap(int)':
0_0_23814294_22695.cpp:15:6: error: expected primary-expression before ')' token
if()
^
0_0_23814294_22695.cpp:16:2: error: expected primary-expression before '}' token
}
^
0_0_23814294_22695.cpp: In function 'int main()':
0_0_23814294_22695.cpp:23:26: error: 'n' was not declared in this scope
while(scanf("%d %d",&n,&m))
^
0_0_23814294_22695.cpp:23:29: error: 'm' was not declared in this scope
while(scanf("%d %d",&n,&m))
^
0_0_23814294_22695.cpp:25:13: error: 'k' was not declared in this scope
for(k=0;k<m;k++)
^
0_0_23814294_22695.cpp:27:24: error: 'a' was not declared in this scope
scanf("%d %d",&a,&b);
^
0_0_23814294_22695.cpp:27:27: error: 'b' was not declared in this scope
scanf("%d %d",&a,&b);
^
0_0_23814294_22695.cpp:28:3: error: 'i' was not declared in this scope
i=work[b];
^
0_0_23814294_22695.cpp:28:5: error: 'work' was not declared in this scope
i=work[b];
^
0_0_23814294_22695.cpp:32:4: error: 'flag' was not declared in this scope
flag++;
^
|