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_38770986_4143.cpp:39:11: error: invalid use of non-static data member 'ST::level'
   39 |         : level(std::__lg(std::max((int)a.size() - 1, 1)) + 2),
      |           ^~~~~
0_0_38770986_4143.cpp:34:9: note: declared here
   34 |     int level;
      |         ^~~~~
0_0_38770986_4143.cpp:39:41: error: 'a' was not declared in this scope
   39 |         : level(std::__lg(std::max((int)a.size() - 1, 1)) + 2),
      |                                         ^
0_0_38770986_4143.cpp:40:48: error: expected ')' before ',' token
   40 |           f(std::vector<std::vector<int>>(level,
      |                                          ~     ^
      |                                                )
0_0_38770986_4143.cpp:40:48: error: expected ')' before ',' token
   40 |           f(std::vector<std::vector<int>>(level,
      |            ~                                   ^
      |                                                )
0_0_38770986_4143.cpp:40:48: error: 'int ST::f(...)' conflicts with a previous declaration
0_0_38770986_4143.cpp:35:35: note: previous declaration 'std::vector<std::vector<int> > ST::f'
   35 |     std::vector<std::vector<int>> f;
      |                                   ^
0_0_38770986_4143.cpp:41:59: error: invalid declarator before '(' token
   41 |                                           std::vector<int>(a.size() + 1))),
      |                                                           ^
0_0_38770986_4143.cpp: In function 'void solve()':
0_0_38770986_4143.cpp:97:13: error: cannot convert 'std::vector<int>' to 'int' in initialization
   97 |     ST xtoy(len1), ytox(len2);
      |             ^~~~
      |             |
      |             std::vector<int>
0_0_38770986_4143.cpp:97:25: error: cannot convert 'std::vector<int>' to 'int' in initialization
   97 |     ST xtoy(len1), ytox(len2);
      |                         ^~~~
      |                         |
      |                         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-16 20:56:06, Gzip enabled