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_22176919_15152.cpp: In function 'int main()':
0_0_22176919_15152.cpp:6:16: error: 'scanft' was not declared in this scope
  scanft("%d",&n);
                ^
0_0_22176919_15152.cpp:7:16: error: redeclaration of 'int sum'
  for(int sum=0,sum=sum+n,n++,n<=100)
                ^
0_0_22176919_15152.cpp:7:10: note: 'int sum' previously declared here
  for(int sum=0,sum=sum+n,n++,n<=100)
          ^
0_0_22176919_15152.cpp:7:27: error: expected initializer before '++' token
  for(int sum=0,sum=sum+n,n++,n<=100)
                           ^
0_0_22176919_15152.cpp:7:27: error: expected ';' before '++' token
0_0_22176919_15152.cpp:7:29: error: expected primary-expression before ',' token
  for(int sum=0,sum=sum+n,n++,n<=100)
                             ^
0_0_22176919_15152.cpp:7:36: error: expected ';' before ')' token
  for(int sum=0,sum=sum+n,n++,n<=100)
                                    ^


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-05 07:15:16, Gzip enabled