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_25291886_30683.cpp:22:28: error: 'a' does not name a type
 const double pi=acos(-1.0);a
                            ^
0_0_25291886_30683.cpp: In function 'void init()':
0_0_25291886_30683.cpp:29:20: error: 'ans' was not declared in this scope
         if(i%4==0) ans[i]=(i*i)/8;
                    ^
0_0_25291886_30683.cpp:30:20: error: 'ans' was not declared in this scope
         if(i%4==1) ans[i]=ans[i-1]+i/4-0.5;
                    ^
0_0_25291886_30683.cpp:31:20: error: 'ans' was not declared in this scope
         if(i%4==2) ans[i]=(i/4)*(i/4+1)*2;
                    ^
0_0_25291886_30683.cpp:32:20: error: 'ans' was not declared in this scope
         if(i%4==3) ans[i]=ans[i-1]+i/4+0.5;
                    ^
0_0_25291886_30683.cpp: In function 'int main()':
0_0_25291886_30683.cpp:46:16: error: 'ans' was not declared in this scope
             if(ans[i]>=num){
                ^


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-06-21 13:49:27, Gzip enabled