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_34713410_22622.cpp: In function 'int main()':
0_0_34713410_22622.cpp:6:5: error: expected initializer before 'double'
     double psum,sum;
     ^
0_0_34713410_22622.cpp:7:28: error: 'n' was not declared in this scope
     while(scanf("%d%d",&m,&n)!=EOF)
                            ^
0_0_34713410_22622.cpp:8:9: error: 'psum' was not declared in this scope
         psum=0;sum=0;
         ^
0_0_34713410_22622.cpp:8:16: error: 'sum' was not declared in this scope
         psum=0;sum=0;
                ^
0_0_34713410_22622.cpp:10:18: error: 'n' was not declared in this scope
         for(m;m<=n;m++){
                  ^
0_0_34713410_22622.cpp:11:24: error: 'psum' was not declared in this scope
             if(m%2==0) psum+=pow(m,2);
                        ^
0_0_34713410_22622.cpp:15:24: error: 'psum' was not declared in this scope
     printf("%.0f %.0f",psum,sum);
                        ^


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-15 18:54:22, Gzip enabled