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_38293688_28568.cpp:1:10: error: 'N' was not declared in this scope
 double f[N][N];
          ^
0_0_38293688_28568.cpp:1:13: error: 'N' was not declared in this scope
 double f[N][N];
             ^
0_0_38293688_28568.cpp:2:7: error: 'N' was not declared in this scope
 int a[N],b[N],n,m;
       ^
0_0_38293688_28568.cpp:2:12: error: 'N' was not declared in this scope
 int a[N],b[N],n,m;
            ^
0_0_38293688_28568.cpp: In function 'void DP()':
0_0_38293688_28568.cpp:12:13: error: 'FOR1' was not declared in this scope
     FOR1(i,n) FOR0(j,m+1) f[i][j]=-inf;
             ^
0_0_38293688_28568.cpp:14:15: error: 'a' was not declared in this scope
     for(i=0;i*a[1]<=m;i++) f[1][i*a[1]]=b[1]*i-4.9*i*i;
               ^
0_0_38293688_28568.cpp:14:28: error: 'f' was not declared in this scope
     for(i=0;i*a[1]<=m;i++) f[1][i*a[1]]=b[1]*i-4.9*i*i;
                            ^
0_0_38293688_28568.cpp:14:41: error: 'b' was not declared in this scope
     for(i=0;i*a[1]<=m;i++) f[1][i*a[1]]=b[1]*i-4.9*i*i;
                                         ^
0_0_38293688_28568.cpp:15:50: error: 'a' was not declared in this scope
     for(i=2;i<n;i++) for(j=0;j<=m;j++) for(k=0;k*a[i]+j<=m;k++)
                                                  ^
0_0_38293688_28568.cpp:17:14: error: 'f' was not declared in this scope
         temp=f[i-1][j]+b[i]*k-4.9*k*k;
              ^
0_0_38293688_28568.cpp:17:24: error: 'b' was not declared in this scope
         temp=f[i-1][j]+b[i]*k-4.9*k*k;
                        ^
0_0_38293688_28568.cpp: In function 'double cal()':
0_0_38293688_28568.cpp:25:21: error: 'b' was not declared in this scope
     if(n==1) return b[1]*(1.0*m/a[1])-4.9*sqr(1.0*m/a[1]);
                     ^
0_0_38293688_28568.cpp:25:33: error: 'a' was not declared in this scope
     if(n==1) return b[1]*(1.0*m/a[1])-4.9*sqr(1.0*m/a[1]);
                                 ^
0_0_38293688_28568.cpp:25:57: error: 'sqr' was not declared in this scope
     if(n==1) return b[1]*(1.0*m/a[1])-4.9*sqr(1.0*m/a[1]);
                                                         ^
0_0_38293688_28568.cpp:29:17: error: 'inf' was not declared in this scope
     double ans=-inf,temp,t;
                 ^
0_0_38293688_28568.cpp:30:13: error: 'FOR1' was not declared in this scope
     FOR1(i,n)
             ^
0_0_38293688_28568.cpp: In function 'int main()':
0_0_38293688_28568.cpp:48:10: error: 'rush' was not declared in this scope
     rush()
          ^


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-29 16:05:02, Gzip enabled