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_31276468_22879.cpp:4:1: error: stray '\243' in program
 int n,sum=0,i;
 ^
0_0_31276468_22879.cpp:4:1: error: stray '\275' in program
0_0_31276468_22879.cpp:6:1: error: stray '\243' in program
 for(i=1;i<=n;i++)
 ^
0_0_31276468_22879.cpp:6:1: error: stray '\275' in program
0_0_31276468_22879.cpp:6:1: error: stray '\243' in program
0_0_31276468_22879.cpp:6:1: error: stray '\253' in program
0_0_31276468_22879.cpp:6:1: error: stray '\243' in program
0_0_31276468_22879.cpp:6:1: error: stray '\253' in program
0_0_31276468_22879.cpp:8:1: error: stray '\243' in program
 sum=sum+i;
 ^
0_0_31276468_22879.cpp:8:1: error: stray '\275' in program
0_0_31276468_22879.cpp:8:1: error: stray '\243' in program
0_0_31276468_22879.cpp:8:1: error: stray '\253' in program
0_0_31276468_22879.cpp: In function 'int main()':
0_0_31276468_22879.cpp:4:12: error: expected initializer before numeric constant
 int n,sum=0,i;
            ^
0_0_31276468_22879.cpp:6:5: error: 'i' was not declared in this scope
 for(i=1;i<=n;i++)
     ^
0_0_31276468_22879.cpp:8:1: error: 'sum' was not declared in this scope
 sum=sum+i;
 ^
0_0_31276468_22879.cpp:10:16: error: 'sum' was not declared in this scope
 printf("%d/n",sum);
                ^


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-07-03 06:49:37, Gzip enabled