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_39498775_16105.cpp: In function 'int main()':
0_0_39498775_16105.cpp:2:14: error: 'std::ios' has not been declared
    2 |         std::ios::sync_with_stdio(false);
      |              ^~~
0_0_39498775_16105.cpp:3:14: error: 'cin' is not a member of 'std'
    3 |         std::cin.tie(0);
      |              ^~~
0_0_39498775_16105.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | signed main() {
0_0_39498775_16105.cpp:6:14: error: 'cin' is not a member of 'std'
    6 |         std::cin >> n;
      |              ^~~
0_0_39498775_16105.cpp:6:14: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39498775_16105.cpp:7:14: error: 'vector' is not a member of 'std'
    7 |         std::vector<std::vector<int>> adj(n + 1);
      |              ^~~~~~
0_0_39498775_16105.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | signed main() {
0_0_39498775_16105.cpp:7:26: error: 'vector' is not a member of 'std'
    7 |         std::vector<std::vector<int>> adj(n + 1);
      |                          ^~~~~~
0_0_39498775_16105.cpp:7:26: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39498775_16105.cpp:7:33: error: expected primary-expression before 'int'
    7 |         std::vector<std::vector<int>> adj(n + 1);
      |                                 ^~~
0_0_39498775_16105.cpp:11:22: error: 'cin' is not a member of 'std'
   11 |                 std::cin >> u >> v;
      |                      ^~~
0_0_39498775_16105.cpp:11:22: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39498775_16105.cpp:12:17: error: 'adj' was not declared in this scope
   12 |                 adj[u].emplace_back(v);
      |                 ^~~
0_0_39498775_16105.cpp:16:14: error: 'vector' is not a member of 'std'
   16 |         std::vector<u64> a(n + 1);
      |              ^~~~~~
0_0_39498775_16105.cpp:16:14: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39498775_16105.cpp:16:21: error: 'u64' was not declared in this scope
   16 |         std::vector<u64> a(n + 1);
      |                     ^~~
0_0_39498775_16105.cpp:16:26: error: 'a' was not declared in this scope
   16 |         std::vector<u64> a(n + 1);
      |                          ^
0_0_39498775_16105.cpp:17:14: error: 'vector' is not a member of 'std'
   17 |         std::vector<u64> ans(n + 1);
      |              ^~~~~~
0_0_39498775_16105.cpp:17:14: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39498775_16105.cpp:17:26: error: 'ans' was not declared in this scope
   17 |         std::vector<u64> ans(n + 1);
      |                          ^~~
0_0_39498775_16105.cpp:19:22: error: 'cin' is not a member of 'std'
   19 |                 std::cin >> a[i];
      |                      ^~~
0_0_39498775_16105.cpp:19:22: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39498775_16105.cpp:22:14: error: 'vector' is not a member of 'std'
   22 |         std::vector<int> hs(n + 1), sz(n + 1, 1);
      |              ^~~~~~
0_0_39498775_16105.cpp:22:14: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
0_0_39498775_16105.cpp:22:21: error: expected primary-expression before 'int'
   22 |         std::vector<int> hs(n + 1), sz(n + 1, 1);
      |                     ^~~
0_0_39498775_16105.cpp:23:14: error: 'function' is not a member of 'std'
   23 |         std::function<void(int, int)> dfs0 = [&](int x, int fx) -> void {
      |              ^~~~~~~~
0_0_39498775_16105.cpp:1:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
  +++ |+#include <functional>
    1 | signed main() {
0_0_39498775_16105.cpp:23:36: error: expression list treated as compound expression in functional cast [-fpermissive]
   23 |         std::function<void(int, int)> dfs0 = [&](int x, int fx) -> void {
      |                                    ^
0_0_39498775_16105.cpp:23:23: error: expected primary-expression before 'void'
   23 |         std::function<void(int, int)> dfs0 = [&](int x, int fx) -> void {
      |                       ^~~~
0_0_39498775_16105.cpp:34:9: error: 'dfs0' was not declared in this scope
   34 |         dfs0(1, 0);
      |         ^~~~
0_0_39498775_16105.cpp:34:20: error: expected '}' at end of input
   34 |         dfs0(1, 0);
      |                    ^
0_0_39498775_16105.cpp:1:15: note: to match this '{'
    1 | signed 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:29:22, Gzip enabled