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_39513564_28149.cpp: In function 'void solve()':
0_0_39513564_28149.cpp:63:18: error: 'k' was not declared in this scope
   63 |                 {k
      |                  ^
0_0_39513564_28149.cpp:67:26: error: expected '}' before 'else'
   67 |                         }else cout<<"0"<<endl;
      |                          ^~~~
0_0_39513564_28149.cpp:63:17: note: to match this '{'
   63 |                 {k
      |                 ^
0_0_39513564_28149.cpp:68:18: error: 'else' without a previous 'if'
   68 |                 }else{
      |                  ^~~~
0_0_39513564_28149.cpp:69:45: error: 'l' was not declared in this scope
   69 |                         if(zero.upper_bound(l)!=zero.upper_bound(r))cout<<"0"<<endl;
      |                                             ^
0_0_39513564_28149.cpp:69:66: error: 'r' was not declared in this scope
   69 |                         if(zero.upper_bound(l)!=zero.upper_bound(r))cout<<"0"<<endl;
      |                                                                  ^
0_0_39513564_28149.cpp: At global scope:
0_0_39513564_28149.cpp:84:1: error: expected declaration before '}' token
   84 | }
      | ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-17 07:04:49, Gzip enabled