0_0_37070722_12481.cpp:1:2: error: stray '#' in program
h#include<bits/stdc++.h>
^
0_0_37070722_12481.cpp:1:1: error: 'h' does not name a type
h#include<bits/stdc++.h>
^
0_0_37070722_12481.cpp: In function 'int lca(int, int)':
0_0_37070722_12481.cpp:26:25: error: 'printf' was not declared in this scope
printf("lca%d %d\n",x,y);
^
0_0_37070722_12481.cpp:27:24: error: 'swap' was not declared in this scope
if(h[x]<h[y]) swap(x,y);
^
0_0_37070722_12481.cpp: In function 'int main()':
0_0_37070722_12481.cpp:36:26: error: 'scanf' was not declared in this scope
while(scanf("%d%d",&n,&k)!=EOF)
^
0_0_37070722_12481.cpp:36:29: error: 'EOF' was not declared in this scope
while(scanf("%d%d",&n,&k)!=EOF)
^
0_0_37070722_12481.cpp:41:26: error: 'memset' was not declared in this scope
memset(f,0x3f,sizeof(f));
^
0_0_37070722_12481.cpp:46:46: error: 'min' was not declared in this scope
f[i][j]=min(f[i-1][j],f[i-1][j-1]+h[a[i]]);
^
0_0_37070722_12481.cpp:49:24: error: 'printf' was not declared in this scope
printf("%d\n",f[n][k]);
^
|