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_22134552_5532.cpp:15:10: error: 'N' was not declared in this scope
 double d[N];
          ^
0_0_22134552_5532.cpp: In function 'int main()':
0_0_22134552_5532.cpp:20:14: error: 'd' was not declared in this scope
   if(i%4==0) d[i]=(i*i)/8;
              ^
0_0_22134552_5532.cpp:21:14: error: 'd' was not declared in this scope
   if(i%4==1) d[i]=d[i-1]+i/4-0.5;
              ^
0_0_22134552_5532.cpp:22:14: error: 'd' was not declared in this scope
   if(i%4==2) d[i]=(i/4)*(i/4+1)*2;
              ^
0_0_22134552_5532.cpp:23:14: error: 'd' was not declared in this scope
   if(i%4==3) d[i]=d[i-1]+i/4+0.5;
              ^
0_0_22134552_5532.cpp:33:7: error: 'd' was not declared in this scope
    if(d[i]>=n)
       ^


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-28 16:31:47, Gzip enabled