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_33338587_15406.cpp: In function 'int main()':
0_0_33338587_15406.cpp:15:15: error: 'last' was not declared in this scope
        memset(last,0,sizeof(last));
               ^
0_0_33338587_15406.cpp:22:35: error: 't' was not declared in this scope
            if(last[x]==0||last[x]<t) {
                                   ^
0_0_33338587_15406.cpp:26:12: error: 'ans' was not declared in this scope
            ans++;
            ^
0_0_33338587_15406.cpp:27:12: error: 't' was not declared in this scope
            t=i;
            ^
0_0_33338587_15406.cpp:30:14: error: 'ans' was not declared in this scope
        cout<<ans<<endl;
              ^


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-23 00:59:41, Gzip enabled