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_20486643_23374.cpp: In function 'int main()':
0_0_20486643_23374.cpp:5:8: error: expected unqualified-id before ';' token
  int n,;int step=0;
        ^
0_0_20486643_23374.cpp:10:7: error: incompatible types in assignment of 'int' to 'int [1000]'
   {sum=0;
       ^
0_0_20486643_23374.cpp:14:11: error: 'i' was not declared in this scope
    cin >> i;
           ^
0_0_20486643_23374.cpp:18:30: error: expected ';' before '!' token
 for(int k=0;k<step&&sum[step]!&0;k++)cout << sum << endl<<endl;}
                              ^
0_0_20486643_23374.cpp:18:32: error: lvalue required as unary '&' operand
 for(int k=0;k<step&&sum[step]!&0;k++)cout << sum << endl<<endl;}
                                ^
0_0_20486643_23374.cpp:18:33: error: expected ')' before ';' token
 for(int k=0;k<step&&sum[step]!&0;k++)cout << sum << endl<<endl;}
                                 ^
0_0_20486643_23374.cpp:18:34: error: 'k' was not declared in this scope
 for(int k=0;k<step&&sum[step]!&0;k++)cout << sum << endl<<endl;}
                                  ^


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-09-22 11:25:05, Gzip enabled