0_0_30620934_16046.cpp:1:1: error: 'include' does not name a type
include <bits/stdc++.h>
^
0_0_30620934_16046.cpp:13:1: error: 'vector' does not name a type
vector<int>valid;
^
0_0_30620934_16046.cpp: In function 'void pre_cal()':
0_0_30620934_16046.cpp:28:5: error: 'valid' was not declared in this scope
valid.push_back(i);
^
0_0_30620934_16046.cpp: In function 'int rec2(int, int)':
0_0_30620934_16046.cpp:53:45: error: 'min' was not declared in this scope
re=min(re,dis[pos][i]+rec2(i,mask^(1<<i)));
^
0_0_30620934_16046.cpp: In function 'int rec3()':
0_0_30620934_16046.cpp:65:16: error: 'valid' was not declared in this scope
for(int i=0;i<valid.size();i++){
^
0_0_30620934_16046.cpp:68:37: error: 'min' was not declared in this scope
dp1[m]=min(dp1[m],dp1[s]+dp1[m^s]);
^
0_0_30620934_16046.cpp: In function 'int solve2()':
0_0_30620934_16046.cpp:77:16: error: 'valid' was not declared in this scope
for(int i=0;i<valid.size();i++){
^
0_0_30620934_16046.cpp: In function 'int main(int, const char**)':
0_0_30620934_16046.cpp:89:2: error: 'cin' was not declared in this scope
cin>>n>>M;
^
0_0_30620934_16046.cpp:99:121: error: 'sqrt' was not declared in this scope
dis[i][j]=ceil(sqrt((double)((info[i].x-info[j].x)*(info[i].x-info[j].x)+(info[i].y-info[j].y)*(info[i].y-info[j].y))));
^
0_0_30620934_16046.cpp:99:122: error: 'ceil' was not declared in this scope
dis[i][j]=ceil(sqrt((double)((info[i].x-info[j].x)*(info[i].x-info[j].x)+(info[i].y-info[j].y)*(info[i].y-info[j].y))));
^
0_0_30620934_16046.cpp:105:26: error: 'memset' was not declared in this scope
memset(dp1,63,sizeof dp1);
^
0_0_30620934_16046.cpp:108:2: error: 'cout' was not declared in this scope
cout<<solve2()<<endl;
^
0_0_30620934_16046.cpp:108:18: error: 'endl' was not declared in this scope
cout<<solve2()<<endl;
^
|