Judge Information
Run ID: 32503
src.cpp:1:1: error: 'include' does not name a type
include<bits/stdc++.h>
^
src.cpp:8:1: error: 'vector' does not name a type
vector<int>a[1000001];
^
src.cpp: In function 'void nhap()':
src.cpp:11:5: error: 'cin' was not declared in this scope
cin>>n>>m;
^
src.cpp:15:9: error: 'a' was not declared in this scope
a[x].push_back(y);
^
src.cpp:18:23: error: 'a' was not declared in this scope
for(i=0;i<=m;i++) a[i].push_back(0);
^
src.cpp: In function 'void BFS(int)':
src.cpp:22:5: error: 'queue' was not declared in this scope
queue <int> q;
^
src.cpp:22:12: error: expected primary-expression before 'int'
queue <int> q;
^
src.cpp:24:5: error: 'q' was not declared in this scope
q.push(x);
^
src.cpp:30:24: error: 'a' was not declared in this scope
for(i=0; int v=a[u][i];i++)
^
src.cpp: In function 'int main()':
src.cpp:41:5: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(0);cin.tie(0);cout,tie(0);
^
src.cpp:41:34: error: 'cin' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout,tie(0);
^
src.cpp:41:45: error: 'cout' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout,tie(0);
^
src.cpp:41:55: error: 'tie' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout,tie(0);
^
src.cpp:42:30: error: 'stdin' was not declared in this scope
freopen("DONGCO.INP","r",stdin);
^
src.cpp:42:35: error: 'freopen' was not declared in this scope
freopen("DONGCO.INP","r",stdin);
^
src.cpp:43:30: error: 'stdout' was not declared in this scope
freopen("DONGCO.OUT","w",stdout);
^
src.cpp:49:10: error: 'endl' was not declared in this scope
cout<<d<<endl;
^
include<bits/stdc++.h>
^
src.cpp:8:1: error: 'vector' does not name a type
vector<int>a[1000001];
^
src.cpp: In function 'void nhap()':
src.cpp:11:5: error: 'cin' was not declared in this scope
cin>>n>>m;
^
src.cpp:15:9: error: 'a' was not declared in this scope
a[x].push_back(y);
^
src.cpp:18:23: error: 'a' was not declared in this scope
for(i=0;i<=m;i++) a[i].push_back(0);
^
src.cpp: In function 'void BFS(int)':
src.cpp:22:5: error: 'queue' was not declared in this scope
queue <int> q;
^
src.cpp:22:12: error: expected primary-expression before 'int'
queue <int> q;
^
src.cpp:24:5: error: 'q' was not declared in this scope
q.push(x);
^
src.cpp:30:24: error: 'a' was not declared in this scope
for(i=0; int v=a[u][i];i++)
^
src.cpp: In function 'int main()':
src.cpp:41:5: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(0);cin.tie(0);cout,tie(0);
^
src.cpp:41:34: error: 'cin' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout,tie(0);
^
src.cpp:41:45: error: 'cout' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout,tie(0);
^
src.cpp:41:55: error: 'tie' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout,tie(0);
^
src.cpp:42:30: error: 'stdin' was not declared in this scope
freopen("DONGCO.INP","r",stdin);
^
src.cpp:42:35: error: 'freopen' was not declared in this scope
freopen("DONGCO.INP","r",stdin);
^
src.cpp:43:30: error: 'stdout' was not declared in this scope
freopen("DONGCO.OUT","w",stdout);
^
src.cpp:49:10: error: 'endl' was not declared in this scope
cout<<d<<endl;
^