0_0_38364610_5290.cpp: In function 'void BFS(int, int, int, int, long long int&)':
0_0_38364610_5290.cpp:18:2: error: 'queue' was not declared in this scope
queue<node>q;
^
0_0_38364610_5290.cpp:18:12: error: expected primary-expression before '>' token
queue<node>q;
^
0_0_38364610_5290.cpp:18:13: error: 'q' was not declared in this scope
queue<node>q;
^
0_0_38364610_5290.cpp:20:30: error: 'memset' was not declared in this scope
memset(vis,false,sizeof(vis));
^
0_0_38364610_5290.cpp:24:47: error: 'min' was not declared in this scope
if(x == dx && y == dy)res = min(res,(ll)step);
^
0_0_38364610_5290.cpp: In function 'int main()':
0_0_38364610_5290.cpp:43:8: error: 'cin' was not declared in this scope
while(cin >> n >> m){
^
0_0_38364610_5290.cpp:46:3: error: 'vector' was not declared in this scope
vector<P>v(m);
^
0_0_38364610_5290.cpp:46:11: error: expected primary-expression before '>' token
vector<P>v(m);
^
0_0_38364610_5290.cpp:46:15: error: 'v' was not declared in this scope
vector<P>v(m);
^
0_0_38364610_5290.cpp:70:62: error: 'min' was not declared in this scope
dp[i][u] = min(dp[i][u], dp[i | (1 << k)][k] + dis[u][k]);
^
0_0_38364610_5290.cpp:76:3: error: 'cout' is not a member of 'std'
std::cout << ans << endl;
^
0_0_38364610_5290.cpp:76:23: error: 'endl' was not declared in this scope
std::cout << ans << endl;
^
0_0_38364610_5290.cpp:78:16: error: 'system' was not declared in this scope
system("pause");
^
|