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_39082937_22863.cpp: In function 'long long int yjf::main()':
0_0_39082937_22863.cpp:112:43: error: redeclaration of 'long long int ans1'
  112 |                                 long long ans1=0,ans2=0;
      |                                           ^~~~
0_0_39082937_22863.cpp:109:43: note: 'long long int ans1' previously declared here
  109 |                                 long long ans1=query(1,1,n,x,y);
      |                                           ^~~~
0_0_39082937_22863.cpp:112:50: error: redeclaration of 'long long int ans2'
  112 |                                 long long ans1=0,ans2=0;
      |                                                  ^~~~
0_0_39082937_22863.cpp:111:43: note: 'long long int ans2' previously declared here
  111 |                                 long long ans2=query(1,1,n,x,y);
      |                                           ^~~~


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 03:46:17, Gzip enabled