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_19850686_1393.c:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <stdio.h>
         ^
0_0_19850686_1393.c:2:4: error: expected identifier or '(' before '&' token
 int main(void)
    ^
0_0_19850686_1393.c: In function 'main':
0_0_19850686_1393.c:4:2: error: 'nbsp' undeclared (first use in this function)
     int n, i;
  ^
0_0_19850686_1393.c:4:2: note: each undeclared identifier is reported only once for each function it appears in
0_0_19850686_1393.c:4:28: error: expected identifier or '(' before '&' token
     int n, i;
                            ^
0_0_19850686_1393.c:4:34: error: 'n' undeclared (first use in this function)
     int n, i;
                                  ^
0_0_19850686_1393.c:4:42: error: 'i' undeclared (first use in this function)
     int n, i;
                                          ^
0_0_19850686_1393.c:5:31: error: expected identifier or '(' before '&' token
     double min, max;
                               ^
0_0_19850686_1393.c:5:37: error: 'min' undeclared (first use in this function)
     double min, max;
                                     ^
0_0_19850686_1393.c:5:47: error: 'max' undeclared (first use in this function)
     double min, max;
                                               ^
0_0_19850686_1393.c:6:31: error: expected identifier or '(' before '&' token
     double x, y; 
                               ^
0_0_19850686_1393.c:6:37: error: 'x' undeclared (first use in this function)
     double x, y; 
                                     ^
0_0_19850686_1393.c:6:45: error: 'y' undeclared (first use in this function)
     double x, y; 
                                             ^
0_0_19850686_1393.c:7:30: error: expected '(' before '&' token
     while (scanf("%d", &n) != EOF)
                              ^
0_0_19850686_1393.c:7:53: error: expected ')' before ';' token
     while (scanf("%d", &n) != EOF)
                                                     ^
0_0_19850686_1393.c:7:62: error: expected ')' before ';' token
     while (scanf("%d", &n) != EOF)
                                                              ^
0_0_19850686_1393.c:9:66: error: expected ')' before ';' token
         scanf("%lf", &x);
                                                                  ^
0_0_19850686_1393.c:10:58: error: expected expression before '=' token
         min = max = x;
                                                          ^
0_0_19850686_1393.c:10:74: error: expected expression before '=' token
         min = max = x;
                                                                          ^
0_0_19850686_1393.c:11:52: error: expected '(' before '&' token
         for (i = 1 ; i < n ; i++)
                                                    ^
0_0_19850686_1393.c:11:65: error: expected ')' before ';' token
         for (i = 1 ; i < n ; i++)
                                                                 ^
0_0_19850686_1393.c:13:90: error: expected ')' before ';' token
             scanf("%lf", &y);
                                                                                          ^
0_0_19850686_1393.c:14:80: error: expected expression before '+=' token
             x += y;
                                                                                ^
0_0_19850686_1393.c:15:75: error: expected '(' before '&' token
             if (y > max) max = y;
                                                                           ^
0_0_19850686_1393.c:15:88: error: expected ')' before ';' token
             if (y > max) max = y;
                                                                                        ^
0_0_19850686_1393.c:15:115: error: expected expression before '=' token
             if (y > max) max = y;
                                                                                                                   ^
0_0_19850686_1393.c:16:75: error: expected '(' before '&' token
             if (y < min) min = y;
                                                                           ^
0_0_19850686_1393.c:16:88: error: expected ')' before ';' token
             if (y < min) min = y;
                                                                                        ^
0_0_19850686_1393.c:16:115: error: expected expression before '=' token
             if (y < min) min = y;
                                                                                                                   ^
0_0_19850686_1393.c:18:71: error: expected ')' before ';' token
         printf("%.2lf\n", (x - min - max) / (n - 2));
                                                                       ^


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-20 00:26:54, Gzip enabled