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_39548294_7958.cpp: In function 'int read()':
0_0_39548294_7958.cpp:16:26: error: 'amp' was not declared in this scope
   16 |         while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
      |                          ^~~
0_0_39548294_7958.cpp:16:29: error: expected ')' before ';' token
   16 |         while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
      |               ~             ^
      |                             )
0_0_39548294_7958.cpp:16:31: error: 'amp' was not declared in this scope
   16 |         while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
      |                               ^~~
0_0_39548294_7958.cpp:16:44: error: expected ';' before ')' token
   16 |         while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
      |                                            ^
      |                                            ;
0_0_39548294_7958.cpp: In function 'bool solve()':
0_0_39548294_7958.cpp:27:24: error: 'amp' was not declared in this scope
   27 |         auto check = [&](int t) {
      |                        ^~~
0_0_39548294_7958.cpp:27:27: error: expected ',' before ';' token
   27 |         auto check = [&](int t) {
      |                           ^
      |                           ,
0_0_39548294_7958.cpp:27:27: error: expected identifier before ';' token
0_0_39548294_7958.cpp:27:27: error: expected ']' before ';' token
   27 |         auto check = [&](int t) {
      |                           ^
      |                           ]
0_0_39548294_7958.cpp: In lambda function:
0_0_39548294_7958.cpp:27:27: error: expected '{' before ';' token
0_0_39548294_7958.cpp: In function 'bool solve()':
0_0_39548294_7958.cpp:27:28: error: expected primary-expression before ']' token
   27 |         auto check = [&](int t) {
      |                            ^
0_0_39548294_7958.cpp:53:47: error: expected ')' before ';' token
   53 |                 if (e[i].size() == 2 && check(i)) return true;
      |                    ~                          ^
      |                                               )
0_0_39548294_7958.cpp:53:54: error: no match for call to '(solve()::<lambda()>) (int&)'
   53 |                 if (e[i].size() == 2 && check(i)) return true;
      |                                                 ~~~~~^~~
0_0_39548294_7958.cpp:53:54: note: candidate: 'void (*)()' (conversion)
0_0_39548294_7958.cpp:53:54: note:   candidate expects 1 argument, 2 provided
0_0_39548294_7958.cpp:27:22: note: candidate: 'solve()::<lambda()>'
   27 |         auto check = [&](int t) {
      |                      ^
0_0_39548294_7958.cpp:27:22: note:   candidate expects 0 arguments, 1 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-11-26 10:30:04, Gzip enabled