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_39518228_27611.cpp: In lambda function:
0_0_39518228_27611.cpp:35:46: error: 'trie' was not declared in this scope
   35 |                                         if (!trie[u][c])
      |                                              ^~~~
0_0_39518228_27611.cpp:36:64: error: 'cnt' was not declared in this scope; did you mean 'int'?
   36 |                                                 trie[u][c] = ++cnt;
      |                                                                ^~~
      |                                                                int
0_0_39518228_27611.cpp:37:45: error: 'trie' was not declared in this scope
   37 |                                         u = trie[u][c];
      |                                             ^~~~
0_0_39518228_27611.cpp: In lambda function:
0_0_39518228_27611.cpp:43:54: error: 'cnt' was not declared in this scope; did you mean 'int'?
   43 |                                 for (int i = p; i <= cnt + 1; i += lowbit(i))
      |                                                      ^~~
      |                                                      int
0_0_39518228_27611.cpp:43:68: error: 'lowbit' was not declared in this scope
   43 |                                 for (int i = p; i <= cnt + 1; i += lowbit(i))
      |                                                                    ^~~~~~
0_0_39518228_27611.cpp:44:41: error: 'v' was not declared in this scope
   44 |                                         v[i] += val;
      |                                         ^
0_0_39518228_27611.cpp: In lambda function:
0_0_39518228_27611.cpp:49:57: error: 'lowbit' was not declared in this scope
   49 |                                 for (int i = p; i; i -= lowbit(i))
      |                                                         ^~~~~~
0_0_39518228_27611.cpp:50:48: error: 'v' was not declared in this scope
   50 |                                         ans += v[i];
      |                                                ^
0_0_39518228_27611.cpp: In function 'int main()':
0_0_39518228_27611.cpp:58:39: error: 'cnt' was not declared in this scope; did you mean 'int'?
   58 |                 std::vector<int> fail(cnt + 1), times(cnt + 1);
      |                                       ^~~
      |                                       int
0_0_39518228_27611.cpp:61:50: error: 'trie' was not declared in this scope; did you mean 'tree'?
   61 |                 for (int i = 0; i < 26; i++) if (trie[0][i]) q.emplace(trie[0][i]);
      |                                                  ^~~~
      |                                                  tree
0_0_39518228_27611.cpp:68:38: error: 'trie' was not declared in this scope; did you mean 'tree'?
   68 |                                 if (!trie[u][i])
      |                                      ^~~~
      |                                      tree
0_0_39518228_27611.cpp:80:29: error: 'trie' was not declared in this scope; did you mean 'tree'?
   80 |                         u = trie[u][a[i] - 'a'];
      |                             ^~~~
      |                             tree
0_0_39518228_27611.cpp:83:36: error: 'itn' was not declared in this scope; did you mean 'int'?
   83 |                 std::function<void(itn)>dfs = [&](int i)
      |                                    ^~~
      |                                    int
0_0_39518228_27611.cpp:83:40: error: template argument 1 is invalid
   83 |                 std::function<void(itn)>dfs = [&](int i)
      |                                        ^
0_0_39518228_27611.cpp: In lambda function:
0_0_39518228_27611.cpp:86:44: error: expression cannot be used as a function
   86 |                                         dfs(j), times[i] += times[j];
      |                                         ~~~^~~
0_0_39518228_27611.cpp: In function 'int main()':
0_0_39518228_27611.cpp:83:47: error: cannot convert 'main()::<lambda(int)>' to 'int' in initialization
   83 |                 std::function<void(itn)>dfs = [&](int i)
      |                                               ^~~~~~~~~~
      |                                               |
      |                                               main()::<lambda(int)>
   84 |                         {
      |                         ~                      
   85 |                                 for (int j : tree[i])
      |                                 ~~~~~~~~~~~~~~~~~~~~~
   86 |                                         dfs(j), times[i] += times[j];
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   87 |                         };
      |                         ~                      
0_0_39518228_27611.cpp:98:20: error: 'dfs' cannot be used as a function
   98 |                 dfs(0);
      |                 ~~~^~~


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 09:33:19, Gzip enabled