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_38583520_3565.cpp: In function 'int main()':
0_0_38583520_3565.cpp:288:10: error: 'function' is not a member of 'std'
     std::function<Poly(int,int,std::vector<Poly>&)> Mult = [&] (int l, int r, std::vector<Poly>& base) -> Poly {
          ^~~~~~~~
0_0_38583520_3565.cpp:288:10: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
0_0_38583520_3565.cpp:8:1:
+#include <functional>
 
0_0_38583520_3565.cpp:288:10:
     std::function<Poly(int,int,std::vector<Poly>&)> Mult = [&] (int l, int r, std::vector<Poly>& base) -> Poly {
          ^~~~~~~~
0_0_38583520_3565.cpp:288:23: error: expected primary-expression before '(' token
     std::function<Poly(int,int,std::vector<Poly>&)> Mult = [&] (int l, int r, std::vector<Poly>& base) -> Poly {
                       ^
0_0_38583520_3565.cpp:288:24: error: expected primary-expression before 'int'
     std::function<Poly(int,int,std::vector<Poly>&)> Mult = [&] (int l, int r, std::vector<Poly>& base) -> Poly {
                        ^~~
0_0_38583520_3565.cpp:288:28: error: expected primary-expression before 'int'
     std::function<Poly(int,int,std::vector<Poly>&)> Mult = [&] (int l, int r, std::vector<Poly>& base) -> Poly {
                            ^~~
0_0_38583520_3565.cpp:288:49: error: expected primary-expression before '&' token
     std::function<Poly(int,int,std::vector<Poly>&)> Mult = [&] (int l, int r, std::vector<Poly>& base) -> Poly {
                                                 ^
0_0_38583520_3565.cpp:288:50: error: expected primary-expression before ')' token
     std::function<Poly(int,int,std::vector<Poly>&)> Mult = [&] (int l, int r, std::vector<Poly>& base) -> Poly {
                                                  ^
0_0_38583520_3565.cpp:288:53: error: 'Mult' was not declared in this scope
     std::function<Poly(int,int,std::vector<Poly>&)> Mult = [&] (int l, int r, std::vector<Poly>& base) -> Poly {
                                                     ^~~~


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-29 18:19:47, Gzip enabled