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_21934417_21558.cpp: In function 'void fastO::print(double, int)':
0_0_21934417_21558.cpp:36:16: error: 'll' does not name a type
         static ll mul[]={1,10,100,1000,10000,100000,1000000,10000000,100000000,
                ^
0_0_21934417_21558.cpp:39:46: error: 'mul' was not declared in this scope
         if (x < -EPS) out('-'), x = -x; x *= mul[y];
                                              ^
0_0_21934417_21558.cpp:40:9: error: 'll' was not declared in this scope
         ll x1 = (ll)floor(x);
         ^
0_0_21934417_21558.cpp:41:36: error: 'x1' was not declared in this scope
         if (x - floor(x) >= 0.5) ++x1;
                                    ^
0_0_21934417_21558.cpp:42:12: error: expected ';' before 'x2'
         ll x2 = x1 / mul[y];
            ^
0_0_21934417_21558.cpp:43:12: error: expected ';' before 'x3'
         ll x3 = x1 - x2 * mul[y];
            ^
0_0_21934417_21558.cpp:44:15: error: 'x2' was not declared in this scope
         print(x2);
               ^
0_0_21934417_21558.cpp:47:41: error: 'x3' was not declared in this scope
             for (size_t i = 1; i < y && x3 * mul[i] < mul[y]; out('0'), ++i);
                                         ^
0_0_21934417_21558.cpp:48:19: error: 'x3' was not declared in this scope
             print(x3);
                   ^


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-16 11:42:56, Gzip enabled