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_38676847_16139.cpp:17:11: error: invalid use of non-static data member 'ST::level'
   17 |         : level(std::__lg(std::max((int)a.size() - 1, 1)) + 2),
      |           ^~~~~
0_0_38676847_16139.cpp:12:9: note: declared here
   12 |     int level;
      |         ^~~~~
0_0_38676847_16139.cpp:17:41: error: 'a' was not declared in this scope
   17 |         : level(std::__lg(std::max((int)a.size() - 1, 1)) + 2),
      |                                         ^
0_0_38676847_16139.cpp:18:48: error: expected ')' before ',' token
   18 |           f(std::vector<std::vector<int>>(level,
      |                                          ~     ^
      |                                                )
0_0_38676847_16139.cpp:18:48: error: expected ')' before ',' token
   18 |           f(std::vector<std::vector<int>>(level,
      |            ~                                   ^
      |                                                )
0_0_38676847_16139.cpp:18:48: error: 'int ST::f(...)' conflicts with a previous declaration
0_0_38676847_16139.cpp:13:35: note: previous declaration 'std::vector<std::vector<int> > ST::f'
   13 |     std::vector<std::vector<int>> f;
      |                                   ^
0_0_38676847_16139.cpp:19:59: error: invalid declarator before '(' token
   19 |                                           std::vector<int>(a.size() + 1))),
      |                                                           ^
0_0_38676847_16139.cpp: In function 'void solve()':
0_0_38676847_16139.cpp:51:11: error: cannot convert 'std::vector<int>' to 'int' in initialization
   51 |     ST st(a);
      |           ^
      |           |
      |           std::vector<int>


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-17 00:25:09, Gzip enabled