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_20480677_4528.c: In function 'main':
0_0_20480677_4528.c:3:2: error: expected expression before '/' token
  //100元、50元、10元、5元、2元和1元六种
  ^
0_0_20480677_4528.c:3:2: error: stray '\324' in program
0_0_20480677_4528.c:3:2: error: stray '\252' in program
0_0_20480677_4528.c:3:2: error: stray '\241' in program
0_0_20480677_4528.c:3:2: error: stray '\242' in program
0_0_20480677_4528.c:3:2: error: stray '\324' in program
0_0_20480677_4528.c:3:2: error: stray '\252' in program
0_0_20480677_4528.c:3:2: error: stray '\241' in program
0_0_20480677_4528.c:3:2: error: stray '\242' in program
0_0_20480677_4528.c:3:2: error: stray '\324' in program
0_0_20480677_4528.c:3:2: error: stray '\252' in program
0_0_20480677_4528.c:3:2: error: stray '\241' in program
0_0_20480677_4528.c:3:2: error: stray '\242' in program
0_0_20480677_4528.c:3:2: error: stray '\324' in program
0_0_20480677_4528.c:3:2: error: stray '\252' in program
0_0_20480677_4528.c:3:2: error: stray '\241' in program
0_0_20480677_4528.c:3:2: error: stray '\242' in program
0_0_20480677_4528.c:3:2: error: stray '\324' in program
0_0_20480677_4528.c:3:2: error: stray '\252' in program
0_0_20480677_4528.c:3:2: error: stray '\272' in program
0_0_20480677_4528.c:3:2: error: stray '\315' in program
0_0_20480677_4528.c:3:2: error: stray '\324' in program
0_0_20480677_4528.c:3:2: error: stray '\252' in program
0_0_20480677_4528.c:3:2: error: stray '\301' in program
0_0_20480677_4528.c:3:2: error: stray '\371' in program
0_0_20480677_4528.c:3:2: error: stray '\326' in program
0_0_20480677_4528.c:3:2: error: stray '\326' in program
0_0_20480677_4528.c:5:23: error: 'n' undeclared (first use in this function)
     while(scanf("%d",&n)){
                       ^
0_0_20480677_4528.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
0_0_20480677_4528.c:7:10: error: 'x' undeclared (first use in this function)
      for(x=i=0;i<n;i++){
          ^
0_0_20480677_4528.c:7:12: error: 'i' undeclared (first use in this function)
      for(x=i=0;i<n;i++){
            ^
0_0_20480677_4528.c:8:20: error: 'a' undeclared (first use in this function)
        scanf("%d",&a[i]);
                    ^
0_0_20480677_4528.c:9:11: error: 'sum' undeclared (first use in this function)
           sum=a[i];
           ^


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 07:29:02, Gzip enabled