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_31002037_22347.cpp: In function 'int main()':
0_0_31002037_22347.cpp:3:13: error: 'long' invalid for 'n'
  long float n,a,b;
             ^
0_0_31002037_22347.cpp:3:15: error: 'long' invalid for 'a'
  long float n,a,b;
               ^
0_0_31002037_22347.cpp:3:17: error: 'long' invalid for 'b'
  long float n,a,b;
                 ^
0_0_31002037_22347.cpp:4:19: error: 'long' invalid for 'c'
  long float c[3001];
                   ^
0_0_31002037_22347.cpp:6:13: error: 'long' invalid for 'sum'
  long float sum=n*a+b;
             ^
0_0_31002037_22347.cpp:7:13: error: 'long' invalid for 'i'
  long float i;
             ^
0_0_31002037_22347.cpp:9:19: error: invalid types 'float [3001][float]' for array subscript
   scanf("%lf",&c[i]);
                   ^
0_0_31002037_22347.cpp:10:16: error: invalid types 'float [3001][float]' for array subscript
   sum=sum-2*c[i]*(n-i);
                ^


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-25 10:48:32, Gzip enabled