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_39498755_12949.cpp: In function 'int main()':
0_0_39498755_12949.cpp:2:14: error: 'std::ios' has not been declared
    2 |         std::ios::sync_with_stdio(false);
      |              ^~~
0_0_39498755_12949.cpp:3:14: error: 'cin' is not a member of 'std'
    3 |         std::cin.tie(0);
      |              ^~~
0_0_39498755_12949.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | int main() {
0_0_39498755_12949.cpp:6:14: error: 'cin' is not a member of 'std'
    6 |         std::cin >> n;
      |              ^~~
0_0_39498755_12949.cpp:6:14: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39498755_12949.cpp:7:14: error: 'vector' is not a member of 'std'
    7 |         std::vector<std::vector<int>> adj(n + 1);
      |              ^~~~~~
0_0_39498755_12949.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | int main() {
0_0_39498755_12949.cpp:7:26: error: 'vector' is not a member of 'std'
    7 |         std::vector<std::vector<int>> adj(n + 1);
      |                          ^~~~~~
0_0_39498755_12949.cpp:7:26: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39498755_12949.cpp:7:33: error: expected primary-expression before 'int'
    7 |         std::vector<std::vector<int>> adj(n + 1);
      |                                 ^~~
0_0_39498755_12949.cpp:11:22: error: 'cin' is not a member of 'std'
   11 |                 std::cin >> u >> v;
      |                      ^~~
0_0_39498755_12949.cpp:11:22: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39498755_12949.cpp:12:17: error: 'adj' was not declared in this scope
   12 |                 adj[u].emplace_back(v);
      |                 ^~~
0_0_39498755_12949.cpp:16:14: error: 'vector' is not a member of 'std'
   16 |         std::vector<u64> a(n + 1);
      |              ^~~~~~
0_0_39498755_12949.cpp:16:14: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39498755_12949.cpp:16:21: error: 'u64' was not declared in this scope
   16 |         std::vector<u64> a(n + 1);
      |                     ^~~
0_0_39498755_12949.cpp:16:26: error: 'a' was not declared in this scope
   16 |         std::vector<u64> a(n + 1);
      |                          ^
0_0_39498755_12949.cpp:17:14: error: 'vector' is not a member of 'std'
   17 |         std::vector<u64> ans(n + 1);
      |              ^~~~~~
0_0_39498755_12949.cpp:17:14: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39498755_12949.cpp:17:26: error: 'ans' was not declared in this scope
   17 |         std::vector<u64> ans(n + 1);
      |                          ^~~
0_0_39498755_12949.cpp:19:22: error: 'cin' is not a member of 'std'
   19 |                 std::cin >> a[i];
      |                      ^~~
0_0_39498755_12949.cpp:19:22: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39498755_12949.cpp:20:10: error: expected '}' at end of input
   20 |         }
      |          ^
0_0_39498755_12949.cpp:1:12: note: to match this '{'
    1 | int main() {
      |            ^


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-15 11:56:04, Gzip enabled