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_38798605_11576.cpp: In function 'void solve()':
0_0_38798605_11576.cpp:347:10: error: 'function' is not a member of 'std'
  347 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |          ^~~~~~~~
0_0_38798605_11576.cpp:6:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
    5 | #include <numeric>
  +++ |+#include <functional>
    6 | 
0_0_38798605_11576.cpp:347:23: error: expected primary-expression before '(' token
  347 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |                       ^
0_0_38798605_11576.cpp:347:24: error: expected primary-expression before 'int'
  347 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |                        ^~~
0_0_38798605_11576.cpp:347:29: error: expected primary-expression before 'int'
  347 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |                             ^~~
0_0_38798605_11576.cpp:347:35: error: 'mult' was not declared in this scope
  347 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |                                   ^~~~


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 17:47:27, Gzip enabled