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_39336096_28741.cpp:26:1: error: 'vector' does not name a type
   26 | vector<int> ans;
      | ^~~~~~
0_0_39336096_28741.cpp: In function 'void find(Node*)':
0_0_39336096_28741.cpp:28:9: error: 'queue' was not declared in this scope
   28 |         queue<Node> que;
      |         ^~~~~
0_0_39336096_28741.cpp:7:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
    6 | #include<algorithm>
  +++ |+#include <queue>
    7 | using namespace std;
0_0_39336096_28741.cpp:28:19: error: expected primary-expression before '>' token
   28 |         queue<Node> que;
      |                   ^
0_0_39336096_28741.cpp:28:21: error: 'que' was not declared in this scope
   28 |         queue<Node> que;
      |                     ^~~
0_0_39336096_28741.cpp:33:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   33 |                 ans.push_back(a.value);
      |                 ^~~
      |                 abs
0_0_39336096_28741.cpp: In function 'int main()':
0_0_39336096_28741.cpp:49:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   49 |                 cout << ans[i];
      |                         ^~~
      |                         abs


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-09-28 12:24:52, Gzip enabled