F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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");
                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 17:53:18, Gzip enabled