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_39294724_8435.cpp: In function 'void solve()':
0_0_39294724_8435.cpp:40:27: error: no match for call to '(solve()::<lambda(int)>) (__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)'
   40 |             dp[i][j] = add(dp[i][j], dp[i - 1][j]);
      |                        ~~~^~~~~~~~~~~~~~~~~~~~~~~~
0_0_39294724_8435.cpp:17:16: note: candidate: 'solve()::<lambda(int)>'
   17 |     auto add = [&](int a) -> int {
      |                ^
0_0_39294724_8435.cpp:17:16: note:   candidate expects 1 argument, 2 provided


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-09-20 21:22:48, Gzip enabled