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_39473794_30435.cpp:1:15: error: non-local lambda expression cannot have a capture-default
    1 |     auto cnt=[&](char c)->int{
      |               ^
0_0_39473794_30435.cpp: In lambda function:
0_0_39473794_30435.cpp:3:11: error: 'i' was not declared in this scope
    3 |       rep(i,0,7)t+=s[i]==c;
      |           ^
0_0_39473794_30435.cpp:3:7: error: 'rep' was not declared in this scope
    3 |       rep(i,0,7)t+=s[i]==c;
      |       ^~~
0_0_39473794_30435.cpp: At global scope:
0_0_39473794_30435.cpp:6:12: error: 's' was not declared in this scope
    6 |     char x=s[0],y=s[4];
      |            ^


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-10 11:09:55, Gzip enabled