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