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_16712624_20014.cpp: In function 'int main()':
0_0_16712624_20014.cpp:11:13: error: 'i' was not declared in this scope
         for(i=a;i<=b;i++)
             ^
0_0_16712624_20014.cpp:14:17: error: 'sum1' was not declared in this scope
                 sum1+=i*i;
                 ^
0_0_16712624_20014.cpp:17:20: error: 'sum2' was not declared in this scope
                    sum2+=i*i*i;
                    ^
0_0_16712624_20014.cpp:21:28: error: 'sum1' was not declared in this scope
         printf("%ld %ld\n",sum1,sum2);
                            ^
0_0_16712624_20014.cpp:21:33: error: 'sum2' was not declared in this scope
         printf("%ld %ld\n",sum1,sum2);
                                 ^
0_0_16712624_20014.cpp: At global scope:
0_0_16712624_20014.cpp:24:5: error: expected unqualified-id before 'return'
     return 0;
     ^
0_0_16712624_20014.cpp:25:1: error: expected declaration before '}' token
 }
 ^


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-12-11 09:15:01, Gzip enabled