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_36328257_6784.cpp: In member function 'void Fenwick<T, M>::add(int, T)':
0_0_36328257_6784.cpp:54:10: error: expected '(' before 'constexpr'
       if constexpr (M)
          ^
0_0_36328257_6784.cpp:56:7: error: 'else' without a previous 'if'
       else c[x] += v;
       ^
0_0_36328257_6784.cpp:56:14: error: 'x' was not declared in this scope
       else c[x] += v;
              ^
0_0_36328257_6784.cpp: In member function 'T Fenwick<T, M>::ask(int) const':
0_0_36328257_6784.cpp:65:10: error: expected '(' before 'constexpr'
       if constexpr (M)
          ^
0_0_36328257_6784.cpp:67:7: error: 'else' without a previous 'if'
       else res += c[x];
       ^
0_0_36328257_6784.cpp:67:21: error: 'x' was not declared in this scope
       else res += c[x];
                     ^


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-12-02 03:58:06, Gzip enabled