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_36327956_15955.cpp: In function 'void Solve(int)':
0_0_36327956_15955.cpp:27:15: error: expected unqualified-id before '[' token
   for (auto &&[c, v] : a[x])
               ^
0_0_36327956_15955.cpp:27:15: error: expected ';' before '[' token
0_0_36327956_15955.cpp:27:16: error: 'c' was not declared in this scope
   for (auto &&[c, v] : a[x])
                ^
0_0_36327956_15955.cpp:27:19: error: 'v' was not declared in this scope
   for (auto &&[c, v] : a[x])
                   ^
0_0_36327956_15955.cpp: In lambda function:
0_0_36327956_15955.cpp:27:22: error: expected '{' before ':' token
   for (auto &&[c, v] : a[x])
                      ^
0_0_36327956_15955.cpp: In function 'void Solve(int)':
0_0_36327956_15955.cpp:27:22: error: expected ';' before ':' token
0_0_36327956_15955.cpp:27:22: error: expected primary-expression before ':' token
0_0_36327956_15955.cpp:27:22: error: expected ')' before ':' token
0_0_36327956_15955.cpp:27:22: error: expected primary-expression before ':' token
0_0_36327956_15955.cpp:28:21: error: 'i' was not declared in this scope
     for (int i = t; i >= c; i--) checkmax(f[i], f[i - c] + v);
                     ^
0_0_36327956_15955.cpp:28:26: error: 'c' was not declared in this scope
     for (int i = t; i >= c; i--) checkmax(f[i], f[i - c] + v);
                          ^


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-12-02 03:34:38, Gzip enabled