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_30866313_19267.cpp: In function 'int main()':
0_0_30866313_19267.cpp:22:13: error: 'll' was not declared in this scope
             ll ans1 = (a + b) >> 1;
             ^
0_0_30866313_19267.cpp:23:17: error: 'ans1' was not declared in this scope
             if (ans1 * 2 != (a + b)) {
                 ^
0_0_30866313_19267.cpp:27:16: error: expected ';' before 'ans2'
             ll ans2 = a - ans1;
                ^
0_0_30866313_19267.cpp:28:17: error: 'ans1' was not declared in this scope
             if (ans1 < ans2) swap(ans1, ans2);
                 ^
0_0_30866313_19267.cpp:28:24: error: 'ans2' was not declared in this scope
             if (ans1 < ans2) swap(ans1, ans2);
                        ^
0_0_30866313_19267.cpp:29:35: error: 'ans1' was not declared in this scope
             printf("%lld %lld\n", ans1, ans2);
                                   ^
0_0_30866313_19267.cpp:29:41: error: 'ans2' was not declared in this scope
             printf("%lld %lld\n", ans1, ans2);
                                         ^


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-10-01 00:30:59, Gzip enabled