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_20303008_3285.cpp: In function 'int main()':
0_0_20303008_3285.cpp:31:33: error: 'i' was not declared in this scope
             for (int j = sqrt(a[i] + 0.5); j >= 1; --j) {
                                 ^
0_0_20303008_3285.cpp: At global scope:
0_0_20303008_3285.cpp:38:15: error: expected constructor, destructor, or type conversion before '(' token
         memset(f,0,sizeof(f));
               ^
0_0_20303008_3285.cpp:39:9: error: expected unqualified-id before 'for'
         for(int i=n;i>=1;i--)
         ^
0_0_20303008_3285.cpp:39:21: error: 'i' does not name a type
         for(int i=n;i>=1;i--)
                     ^
0_0_20303008_3285.cpp:39:26: error: 'i' does not name a type
         for(int i=n;i>=1;i--)
                          ^
0_0_20303008_3285.cpp:61:9: error: expected unqualified-id before 'for'
         for(int i=1;i<=n;i++) ans+=b[i]*c[i];
         ^
0_0_20303008_3285.cpp:61:21: error: 'i' does not name a type
         for(int i=1;i<=n;i++) ans+=b[i]*c[i];
                     ^
0_0_20303008_3285.cpp:61:26: error: 'i' does not name a type
         for(int i=1;i<=n;i++) ans+=b[i]*c[i];
                          ^
0_0_20303008_3285.cpp:62:15: error: expected constructor, destructor, or type conversion before '(' token
         printf("%I64d\n",ans);
               ^
0_0_20303008_3285.cpp:63:5: 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-11-27 00:56:40, Gzip enabled