foo.cpp:1:1: error: 'include' does not name a type
include<cstdio> include<iostream> include<vector> include<queue> include<cstring> include<cstdlib> include<cmath> include<algorithm> include<string>
^
foo.cpp:4:1: error: 'vector' does not name a type
vector<int> to[N],cost[N];
^
foo.cpp:5:1: error: 'vector' does not name a type
vector<int> link[N];
^
foo.cpp:6:1: error: 'queue' does not name a type
queue<int> q;
^
foo.cpp: In function 'int main()':
foo.cpp:14:19: error: 'scanf' was not declared in this scope
scanf("%d%d",&n,&m);
^
foo.cpp:20:5: error: 'to' was not declared in this scope
to[z].push_back(b);to[b].push_back(z);
^
foo.cpp:21:5: error: 'cost' was not declared in this scope
cost[z].push_back(v);cost[b].push_back(v);
^
foo.cpp:23:15: error: 'sort' was not declared in this scope
sort(a+1,a+m+1);
^
foo.cpp:25:5: error: 'cout' was not declared in this scope
cout<<0;
^
foo.cpp: In function 'void ser(int, int)':
foo.cpp:36:1: error: 'cout' was not declared in this scope
cout<<a[l];
^
foo.cpp:40:1: error: 'cout' was not declared in this scope
cout<<ANS;
^
foo.cpp: In function 'bool jud(int)':
foo.cpp:57:8: error: 'link' was not declared in this scope
memset(link,0,sizeof(link));
^
foo.cpp:57:27: error: 'memset' was not declared in this scope
memset(link,0,sizeof(link));
^
foo.cpp:59:15: error: 'to' was not declared in this scope
for(int j=0;j<to[i].size();j++){ int xx=to[i][j];int yy=cost[i][j]; if(yy>x){
^
foo.cpp:59:57: error: 'cost' was not declared in this scope
for(int j=0;j<to[i].size();j++){ int xx=to[i][j];int yy=cost[i][j]; if(yy>x){
^
foo.cpp:68:15: error: 'q' was not declared in this scope
while(q.size()>0) q.pop();
^
foo.cpp:69:9: error: 'q' was not declared in this scope
q.push(k);
^