0_0_21673486_27008.cpp:1:1: error: 'include' does not name a type
include<bits/stdc++.h>
^
0_0_21673486_27008.cpp:3:9: error: 'pair' does not name a type
typedef pair<int,int>poi;
^
0_0_21673486_27008.cpp:8:1: error: 'vector' does not name a type
vector<poi>vec;
^
0_0_21673486_27008.cpp: In function 'int dis(int, int)':
0_0_21673486_27008.cpp:12:16: error: 'vec' was not declared in this scope
return abs(vec[i].first-vec[j].first)+abs(vec[i].second-vec[j].second);
^
0_0_21673486_27008.cpp:12:41: error: 'abs' was not declared in this scope
return abs(vec[i].first-vec[j].first)+abs(vec[i].second-vec[j].second);
^
0_0_21673486_27008.cpp: In function 'int fun()':
0_0_21673486_27008.cpp:17:13: error: 'vec' was not declared in this scope
int len=vec.size();
^
0_0_21673486_27008.cpp:19:29: error: 'memset' was not declared in this scope
memset(dp,inf,sizeof(dp));
^
0_0_21673486_27008.cpp:29:80: error: 'min' was not declared in this scope
dp[i|(1<<k)][k] = min(dp[i|(1<<k)][k], dp[i][j] + dis(j, k));
^
0_0_21673486_27008.cpp:37:46: error: 'min' was not declared in this scope
ret = min(ret, dp[m-1][i] + dis(0, i));
^
0_0_21673486_27008.cpp: In function 'int main()':
0_0_21673486_27008.cpp:44:32: error: 'scanf' was not declared in this scope
while(~scanf("%d%d",&len,&m))
^
0_0_21673486_27008.cpp:46:9: error: 'vec' was not declared in this scope
vec.clear();
^
0_0_21673486_27008.cpp:53:49: error: 'make_pair' was not declared in this scope
vec.push_back(make_pair(i, j));
^
0_0_21673486_27008.cpp:56:28: error: 'printf' was not declared in this scope
printf("%d\n",fun());
^
|