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_39594663_22860.cpp: In function 'void solve()':
0_0_39594663_22860.cpp:46:5: error: 'function' was not declared in this scope
   46 |     function<void(int,int,int,int,int,int)> update = [&](int u, int pl, int pr, int l, int r, int v){
      |     ^~~~~~~~
0_0_39594663_22860.cpp:6:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
    5 | #include <iomanip>
  +++ |+#include <functional>
    6 | using namespace std;
0_0_39594663_22860.cpp:46:42: error: expression list treated as compound expression in functional cast [-fpermissive]
   46 |     function<void(int,int,int,int,int,int)> update = [&](int u, int pl, int pr, int l, int r, int v){
      |                                          ^
0_0_39594663_22860.cpp:46:14: error: expected primary-expression before 'void'
   46 |     function<void(int,int,int,int,int,int)> update = [&](int u, int pl, int pr, int l, int r, int v){
      |              ^~~~
0_0_39594663_22860.cpp:61:9: error: 'update' was not declared in this scope
   61 |         update(1, 0, tot-2, mps[y1], mps[y2]-1, Tag);
      |         ^~~~~~


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 01:36:54, Gzip enabled