/in/foo.cc: In function 'void dps()':
/in/foo.cc:8:34: error: 'memset' was not declared in this scope
memset(f,0x7fffffff,sizeof(f));
^
/in/foo.cc:13:50: error: 'abs' was not declared in this scope
w[i]+=abs(a[rec[j]][i]-a[rec[j+1]][i]);
^
/in/foo.cc:22:55: error: 'abs' was not declared in this scope
v[i][j]+=abs(a[rec[k]][i]-a[rec[k]][j]);
^
/in/foo.cc:33:59: error: 'min' was not declared in this scope
f[i][j]=min(f[i-1][k]+w[j]+v[k][j],f[i][j]);
^
/in/foo.cc:39:28: error: 'min' was not declared in this scope
ans=min(ans,f[c][i]);
^
/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:46:38: error: 'memset' was not declared in this scope
memset(f,0x7fffffff,sizeof(f));
^
/in/foo.cc:51:50: error: 'abs' was not declared in this scope
w[i]+=abs(a[rec[j]][i]-a[rec[j+1]][i]);
^
/in/foo.cc:60:55: error: 'abs' was not declared in this scope
v[i][j]+=abs(a[rec[k]][i]-a[rec[k]][j]);
^
/in/foo.cc:71:59: error: 'min' was not declared in this scope
f[i][j]=min(f[i-1][k]+w[j]+v[k][j],f[i][j]);
^
/in/foo.cc:77:28: error: 'min' was not declared in this scope
ans=min(ans,f[c][i]);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:89:5: error: 'cin' was not declared in this scope
cin>>n>>m>>r>>c;
^~~
/in/foo.cc:94:32: error: 'scanf' was not declared in this scope
scanf("%d",&a[i][j]);
^
/in/foo.cc:98:5: error: 'cout' was not declared in this scope
cout<<ans;
^~~~