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_36127597_24060.cpp: In lambda function:
0_0_36127597_24060.cpp:98:15: error: expected unqualified-id before '[' token
         auto &[cardscore, cardtype, cardneed] = cards[cur];
               ^
0_0_36127597_24060.cpp:98:15: error: expected initializer before '[' token
0_0_36127597_24060.cpp:101:21: error: 'cardscore' was not declared in this scope
         curscore += cardscore;
                     ^
0_0_36127597_24060.cpp:102:17: error: 'cardtype' was not declared in this scope
         gemcard[cardtype]++;
                 ^
0_0_36127597_24060.cpp:103:20: error: expected unqualified-id before '[' token
         for (auto &[t, c] : cardneed) gemneed[t] += c;
                    ^
0_0_36127597_24060.cpp:103:20: error: expected ';' before '[' token
0_0_36127597_24060.cpp:103:21: error: 't' was not declared in this scope
         for (auto &[t, c] : cardneed) gemneed[t] += c;
                     ^
0_0_36127597_24060.cpp:103:24: error: 'c' was not declared in this scope
         for (auto &[t, c] : cardneed) gemneed[t] += c;
                        ^
0_0_36127597_24060.cpp: In lambda function:
0_0_36127597_24060.cpp:103:27: error: expected '{' before ':' token
         for (auto &[t, c] : cardneed) gemneed[t] += c;
                           ^
0_0_36127597_24060.cpp: In lambda function:
0_0_36127597_24060.cpp:103:27: error: expected ';' before ':' token
0_0_36127597_24060.cpp:103:27: error: expected primary-expression before ':' token
0_0_36127597_24060.cpp:103:27: error: expected ')' before ':' token
0_0_36127597_24060.cpp:103:27: error: expected primary-expression before ':' token
0_0_36127597_24060.cpp:123:20: error: expected unqualified-id before '[' token
         for (auto &[t, c] : cardneed) gemneed[t] -= c;
                    ^
0_0_36127597_24060.cpp:123:20: error: expected ';' before '[' token
0_0_36127597_24060.cpp:123:21: error: 't' was not declared in this scope
         for (auto &[t, c] : cardneed) gemneed[t] -= c;
                     ^
0_0_36127597_24060.cpp:123:24: error: 'c' was not declared in this scope
         for (auto &[t, c] : cardneed) gemneed[t] -= c;
                        ^
0_0_36127597_24060.cpp: In lambda function:
0_0_36127597_24060.cpp:123:27: error: expected '{' before ':' token
         for (auto &[t, c] : cardneed) gemneed[t] -= c;
                           ^
0_0_36127597_24060.cpp: In lambda function:
0_0_36127597_24060.cpp:123:27: error: expected ';' before ':' token
0_0_36127597_24060.cpp:123:27: error: expected primary-expression before ':' token
0_0_36127597_24060.cpp:123:27: error: expected ')' before ':' token
0_0_36127597_24060.cpp:123:27: error: expected primary-expression before ':' token
0_0_36127597_24060.cpp: In function 'int solve()':
0_0_36127597_24060.cpp:133:15: error: invalid use of 'auto'
     Dfs(Dfs, 0);
               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 04:05:27, Gzip enabled