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_16246411_26600.cpp: In function 'int main()':
0_0_16246411_26600.cpp:76:17: error: 'cnt' was not declared in this scope
                 cnt[a[l]]--;  
                 ^
0_0_16246411_26600.cpp:83:17: error: 'cnt' was not declared in this scope
                 cnt[a[r]]--;  
                 ^
0_0_16246411_26600.cpp:92:28: error: 'cnt' was not declared in this scope
                     cur += cnt[k-a[l]];  
                            ^
0_0_16246411_26600.cpp:93:17: error: 'cnt' was not declared in this scope
                 cnt[a[l]]++;  
                 ^
0_0_16246411_26600.cpp:99:28: error: 'cnt' was not declared in this scope
                     cur += cnt[k-a[r]];  
                            ^
0_0_16246411_26600.cpp:100:17: error: 'cnt' was not declared in this scope
                 cnt[a[r]]++;  
                 ^
0_0_16246411_26600.cpp: At global scope:
0_0_16246411_26600.cpp:156:2: error: expected unqualified-id before 'return'
  return 0;
  ^
0_0_16246411_26600.cpp:157:1: error: expected declaration before '}' token
 }
 ^


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-07-03 11:40:23, Gzip enabled