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_39476932_26423.cpp:7:1: error: expected initializer before 'void'
    7 | void Merge(ll l, ll mid, ll r){
      | ^~~~
0_0_39476932_26423.cpp: In function 'void Mergesort(ll, ll)':
0_0_39476932_26423.cpp:36:17: error: 'Merge' was not declared in this scope
   36 |                 Merge(l, mid, r);
      |                 ^~~~~
0_0_39476932_26423.cpp: In function 'int main()':
0_0_39476932_26423.cpp:47:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   47 |                 cnt = 0;
      |                 ^~~
      |                 int
0_0_39476932_26423.cpp:59:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
   59 |         if (cnt <= k)
      |             ^~~
      |             int


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-09-29 09:23:29, Gzip enabled