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_26578164_13161.cpp:8:5: error: stray '\' in program
     printf(%d\n,sum);
     ^
0_0_26578164_13161.cpp: In function 'int main()':
0_0_26578164_13161.cpp:4:11: error: expected initializer before 'sum'
     int i sum; 
           ^
0_0_26578164_13161.cpp:5:5: error: 'sum' was not declared in this scope
     sum=0;
     ^
0_0_26578164_13161.cpp:6:9: error: 'i' was not declared in this scope
     for(i=0;i<=100;i++)
         ^
0_0_26578164_13161.cpp:8:12: error: expected primary-expression before '%' token
     printf(%d\n,sum);
            ^
0_0_26578164_13161.cpp:8:13: error: 'd' was not declared in this scope
     printf(%d\n,sum);
             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-28 06:17:15, Gzip enabled