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_30851611_24289.cpp:2:1: error: stray '\243' in program
 int main£¨£©
 ^
0_0_30851611_24289.cpp:2:1: error: stray '\250' in program
0_0_30851611_24289.cpp:2:1: error: stray '\243' in program
0_0_30851611_24289.cpp:2:1: error: stray '\251' in program
0_0_30851611_24289.cpp:5:5: error: stray '\243' in program
     scanf£¨"%d",&n£©;
     ^
0_0_30851611_24289.cpp:5:5: error: stray '\250' in program
0_0_30851611_24289.cpp:5:5: error: stray '\243' in program
0_0_30851611_24289.cpp:5:5: error: stray '\251' in program
0_0_30851611_24289.cpp:4:5: error: expected primary-expression before 'int'
     int i,sum=0,n;
     ^
0_0_30851611_24289.cpp:4:5: error: expected '}' before 'int'
0_0_30851611_24289.cpp:4:5: error: expected ',' or ';' before 'int'
0_0_30851611_24289.cpp:5:5: error: 'scanf' does not name a type
     scanf£¨"%d",&n£©;
     ^
0_0_30851611_24289.cpp:6:5: error: expected unqualified-id before 'for'
     for (i=1;i<=n;i++)
     ^
0_0_30851611_24289.cpp:6:14: error: 'i' does not name a type
     for (i=1;i<=n;i++)
              ^
0_0_30851611_24289.cpp:6:19: error: 'i' does not name a type
     for (i=1;i<=n;i++)
                   ^
0_0_30851611_24289.cpp:8:11: error: expected constructor, destructor, or type conversion before '(' token
     printf("sum=%d\n",sum,n);
           ^
0_0_30851611_24289.cpp:9:5: error: expected unqualified-id before 'return'
     return 0;
     ^
0_0_30851611_24289.cpp:10:1: 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-15 20:52:55, Gzip enabled