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_37727367_13883.cpp: In lambda function:
0_0_37727367_13883.cpp:10:23: error: 'i' is not captured
   auto f=[](int x){if(i-x>=0&&dp[i-x]>-1)dp[i]=min((uint)dp[i],(uint)dp[i-x]+1);};
                       ^
0_0_37727367_13883.cpp:10:34: error: 'i' is not captured
   auto f=[](int x){if(i-x>=0&&dp[i-x]>-1)dp[i]=min((uint)dp[i],(uint)dp[i-x]+1);};
                                  ^
0_0_37727367_13883.cpp:10:45: error: 'i' is not captured
   auto f=[](int x){if(i-x>=0&&dp[i-x]>-1)dp[i]=min((uint)dp[i],(uint)dp[i-x]+1);};
                                             ^
0_0_37727367_13883.cpp:10:61: error: 'i' is not captured
   auto f=[](int x){if(i-x>=0&&dp[i-x]>-1)dp[i]=min((uint)dp[i],(uint)dp[i-x]+1);};
                                                             ^
0_0_37727367_13883.cpp:10:73: error: 'i' is not captured
   auto f=[](int x){if(i-x>=0&&dp[i-x]>-1)dp[i]=min((uint)dp[i],(uint)dp[i-x]+1);};
                                                                         ^


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-30 15:45:18, Gzip enabled