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_39190154_25260.cpp: In function 'int main()':
0_0_39190154_25260.cpp:26:35: error: 'l' was not declared in this scope
   26 |                     ans=max(ans,i-l-1);
      |                                   ^
0_0_39190154_25260.cpp:37:25: error: 'l' was not declared in this scope
   37 |                         l=cnt-1;
      |                         ^
0_0_39190154_25260.cpp:43:32: error: 'l' was not declared in this scope
   43 |                     if(a[i]==a[l])l--;
      |                                ^
0_0_39190154_25260.cpp:55:32: error: 'l' was not declared in this scope
   55 |                     if(a[i]==a[l])l--;
      |                                ^
0_0_39190154_25260.cpp:64:33: error: 'l' was not declared in this scope
   64 |         if(mat==1)ans=max(ans,n-l);
      |                                 ^


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-05 10:11:06, Gzip enabled