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_38798594_17662.cpp: In function 'void solve()':
0_0_38798594_17662.cpp:345:10: error: 'function' is not a member of 'std'
  345 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |          ^~~~~~~~
0_0_38798594_17662.cpp:4:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
    3 | #include <vector>
  +++ |+#include <functional>
    4 | 
0_0_38798594_17662.cpp:345:23: error: expected primary-expression before '(' token
  345 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |                       ^
0_0_38798594_17662.cpp:345:24: error: expected primary-expression before 'int'
  345 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |                        ^~~
0_0_38798594_17662.cpp:345:29: error: expected primary-expression before 'int'
  345 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |                             ^~~
0_0_38798594_17662.cpp:345:35: error: 'mult' was not declared in this scope
  345 |     std::function<Poly(int, int)> mult = [&] (int l, int r) {
      |                                   ^~~~
0_0_38798594_17662.cpp: In instantiation of 'T inverse(T, T) [with T = int]':
0_0_38798594_17662.cpp:58:31:   required from 'Modular<Mod> Modular<Mod>::inv() const [with int Mod = 998244353]'
0_0_38798594_17662.cpp:368:26:   required from here
0_0_38798594_17662.cpp:17:11: error: 'assert' was not declared in this scope
   17 |     assert(b == 1);
      |     ~~~~~~^~~~~~~~
0_0_38798594_17662.cpp:4:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
    3 | #include <vector>
  +++ |+#include <cassert>
    4 | 


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:37:49, Gzip enabled