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